You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mike Thomsen (Jira)" <ji...@apache.org> on 2022/03/30 00:46:00 UTC

[jira] [Resolved] (NIFI-2842) Would like InferAvroSchema and ConvertCSVToAvro to handle numbers better

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

Mike Thomsen resolved NIFI-2842.
--------------------------------
    Resolution: Won't Do

The Kite Bundle was removed.

> Would like InferAvroSchema and ConvertCSVToAvro to handle numbers better
> ------------------------------------------------------------------------
>
>                 Key: NIFI-2842
>                 URL: https://issues.apache.org/jira/browse/NIFI-2842
>             Project: Apache NiFi
>          Issue Type: New Feature
>            Reporter: David Hicks
>            Priority: Major
>
> Assume the following CSV:
> field1,field2
> 10,17
> 7,18.4
> InferAvroSchema will parse both as an integer field, but ConvertCSVtoAvro will explode when trying to convert the second line, because it's a float.  One recommendation would be to allow the user to specify multiple lines and choose the least restrictive one.  If it parses a field as an integer and then a double, the double will override the integer.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)