You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Koji Kawamura (JIRA)" <ji...@apache.org> on 2018/11/08 02:41:00 UTC
[jira] [Created] (NIFI-5802) QueryRecord ignores field nullability
and causes NPE with null input value
Koji Kawamura created NIFI-5802:
-----------------------------------
Summary: QueryRecord ignores field nullability and causes NPE with null input value
Key: NIFI-5802
URL: https://issues.apache.org/jira/browse/NIFI-5802
Project: Apache NiFi
Issue Type: Bug
Components: Extensions
Affects Versions: 1.2.0
Reporter: Koji Kawamura
Assignee: Koji Kawamura
WIth Avro schema, a field can be defined as nullable by a union type. For example:
{code}
"type": [ "null", "boolean" ]
{code}
QueryRecord generates relational data types from the record schema. But it currently doesn't utilize the nullable information. And it leads to a NullPointerException when the incoming FlowFile has null values for the nullable fields.
A simple 'select * from FLOWFILE' can fail.
This issue was reported to nifi user ML. See the message for detail.
https://mail-archives.apache.org/mod_mbox/nifi-users/201811.mbox/%3CCAB10SGVgW2NR76UR1pYJvEZYTO3J1T7t_0q%2BUsQANp%3DcHxS-kw%40mail.gmail.com%3E
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)