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 22:12:00 UTC

[jira] [Updated] (NIFI-5005) MergeRecord processor ignoring schema types for JsonRecordSetWriter output

     [ https://issues.apache.org/jira/browse/NIFI-5005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Pettyjohn updated NIFI-5005:
---------------------------------
    Attachment: MergeContent_JsonOutput.xml

> 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
>            Priority: Major
>         Attachments: MergeContent_JsonOutput.xml, test.csv, test_schema.avsc
>
>
> 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)