[ https://issues.apache.org/jira/browse/NIFI-6042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Burgess resolved NIFI-6042. -------------------------------- Resolution: Fixed I can't reproduce this with the latest NiFi, there were some changes made from 1.9.0 and on to the inference stuff, closing this as OBE. If you find it's still an issue, please reopen the case. > 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 > Priority: Minor > > 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 (v8.3.4#803005)