Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-3918

JsonTreeReader doesn't read Choice data type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.3.0
    • Extensions
    • 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

          Activity

            People

              ijokarumawak Koji Kawamura
              ijokarumawak Koji Kawamura
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: