[
https://issues.apache.org/jira/browse/NIFI-3918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16014087#comment-16014087
]
ASF subversion and git services commented on NIFI-3918:
-------------------------------------------------------
Commit f019d509f38afc0685f361647ee20f798583dfa8 in nifi's branch
refs/heads/master from [~ijokarumawak]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=f019d50 ]
NIFI-3918: Added Choice mapping to JsonTreeRowRecordReader.
> JsonTreeReader doesn't read Choice data type
> --------------------------------------------
>
> Key: NIFI-3918
> URL: https://issues.apache.org/jira/browse/NIFI-3918
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.2.0
> Reporter: Koji Kawamura
> Assignee: Koji Kawamura
>
> 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).
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)