Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.2.0
-
None
Description
Although most readers entirely delegate type conversion to DataTypeUtils, JsonTreeRowRecordReader implements its own conversion and calls DataTypeUtils based on desired data type at its convertField method.
However, CHOICE is not implemented in the switch/case block, so if desired schema field is defined with Choice data type, JsonTreeRowRecordReader returns null.
As a side note, Choice is a counterpart to Avro Union, which is used to define optional fields (e.g. null or string) or possible different types (e.g. null, string or int).
Attachments
Issue Links
- links to