You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/11/03 20:45:00 UTC

[jira] [Commented] (NIFI-7976) JSON Schema Inference infers long type when all values fit in integer type

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

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

Commit 71a5735f63182e93418a36af1946645805938c44 in nifi's branch refs/heads/main from Matt Burgess
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=71a5735 ]

NIFI-7976: Infer ints in JSON when all values fit in integer type
NIFI-7976: Fixed unit test

This closes #4645

Signed-off-by: Mike Thomsen <mt...@apache.org>


> JSON Schema Inference infers long type when all values fit in integer type
> --------------------------------------------------------------------------
>
>                 Key: NIFI-7976
>                 URL: https://issues.apache.org/jira/browse/NIFI-7976
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Matt Burgess
>            Assignee: Matt Burgess
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> For CSV and XML Schema Inference engines, integral values are checked to see if they fit into an integer type, and if so, the engine infers "int" type, otherwise it infers "long" type. However the JSON inference engine only checks for "bigint" and everything else is "long". 
> It should also check to see if the values fit in an integer type and infer "int" in that case.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)