You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Nick Pettyjohn (JIRA)" <ji...@apache.org> on 2018/03/22 21:04:00 UTC
[jira] [Created] (NIFI-5005) MergeRecord processor ignoring schema
types for JsonRecordSetWriter output
Nick Pettyjohn created NIFI-5005:
------------------------------------
Summary: MergeRecord processor ignoring schema types for JsonRecordSetWriter output
Key: NIFI-5005
URL: https://issues.apache.org/jira/browse/NIFI-5005
Project: Apache NiFi
Issue Type: Bug
Components: Extensions
Affects Versions: 1.5.0
Reporter: Nick Pettyjohn
Issue noticed when using a MergeRecord processor with a Record Reader of CSVReader and a Record Writer of JsonRecordSetWriter.
The CSVReader is configured with a Schema Access Strategy of "Use String Fields From Header". The JsonRecordSetWriter is given an Avro schema in the Schema Text property that contains a mix of string, double, and long value types.
Running sample csv data through the MergeRecord processor produces JSON in which all values are quoted, despite the Avro schema specifying otherwise. However, when using the ConvertRecord processor with the same Reader/Writer config, the output JSON records use the typing given in the avro schema, keeping long and float values unquoted.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)