[ 
https://issues.apache.org/jira/browse/NIFI-6088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16790919#comment-16790919
 ] 

ASF subversion and git services commented on NIFI-6088:
-------------------------------------------------------

Commit eb763a3e7fa845f2ade77e191b4600d4cd06a922 in nifi's branch 
refs/heads/support/nifi-1.9.x from Matt Burgess
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=eb763a3 ]

NIFI-6088: Widen type inference for BIGINT and DOUBLE

This closes #3342

Signed-off-by: Mike Thomsen <[email protected]>


> 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
>             Fix For: 1.10.0, 1.9.1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to