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

[jira] [Created] (NIFI-6042) Inferring schema from CSV produces fields in wrong order

Bryan Bende created NIFI-6042:
---------------------------------

             Summary: Inferring schema from CSV produces fields in wrong order
                 Key: NIFI-6042
                 URL: https://issues.apache.org/jira/browse/NIFI-6042
             Project: Apache NiFi
          Issue Type: Bug
    Affects Versions: 1.9.0
            Reporter: Bryan Bende


I created a CsvReader with Infer Schema strategy and had a CSV with:
{code:java}
first,last
bryan,bende{code}
The schema produced had the fields as "last,first" which then was sent to the writer and wrote the columns as "last,first".

I would expect CSV to retain the order of the columns in this case.

It also seems like when selecting "Infer Schema" you should also be forced to select "Treat First Line as Header" as true, since inferring is always going to use the first line to get the field names.



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