You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Matt Burgess (JIRA)" <ji...@apache.org> on 2019/02/28 01:26:00 UTC

[jira] [Assigned] (NIFI-6088) JSON Record Readers sometimes infer types too narrow for the values, leading to truncation

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

Matt Burgess reassigned NIFI-6088:
----------------------------------

    Assignee: Matt Burgess

> JSON Record Readers sometimes infer types too narrow for the values, leading to truncation
> ------------------------------------------------------------------------------------------
>
>                 Key: NIFI-6088
>                 URL: https://issues.apache.org/jira/browse/NIFI-6088
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Matt Burgess
>            Assignee: Matt Burgess
>            Priority: Major
>
> When using the "Infer Schema" strategy on JSON Record Readers (JsonPathReader, JsonTreeReader, e.g.), all fractional numbers are inferred as floats, meaning there can be some truncation if the value can only truly fit in a double. The inference code is meant to fit the field to the widest of its type, so it should infer fractional fields as doubles rather than floats.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)