Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Implicit data type casting in codec (for V2 codec)

Sherman edited this page Feb 25, 2020 · 1 revision

The purpose of the implicit data type casting in codec is to minimize the impact when the data schema changes. These are all data types supported in V2 codec

BOOL, INT8, INT16, INT32, INT64, FLOAT, DOUBLE, STRING, FIXED_STRING, TIMESTEMP, DATE, DATETIME

Here are all the implicit type casting we currently support

int -> bool string -> bool : 'T|t|Y|y', "yes", "Yes", "YES", "true", "True", "TRUE" will be converted to true, otherwise to false bool -> int:w

Clone this wiki locally