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

Matt Burgess commented on NIFI-8754:
------------------------------------

The docs kind of mention that if you have a header line, the choices for Schema 
Access Strategy are "Infer Schema" and "Use String Fields From Header". However 
it doesn't seem to mention the reverse, that if you have "Infer Schema" then 
you must have a header line. We can keep this Jira open to make the docs more 
clear and to make Treat First Line As Header a dependent property that only 
shows up when the Schema Access Strategy value will honor it.

> CSVReader with InferSchema ignoring 1st non header row, even with necessary 
> properties set
> ------------------------------------------------------------------------------------------
>
>                 Key: NIFI-8754
>                 URL: https://issues.apache.org/jira/browse/NIFI-8754
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.13.2
>            Reporter: K Sanghavi
>            Priority: Major
>              Labels: bug
>         Attachments: CSVReaderBug.xml, csvreader-config.jpg, 
> csvreader-flow.jpg, csvreader-input.jpg, csvreader-output.jpg
>
>
> When using CSVReader controller service in any Record based processors  of 
> 1.13.2, is not working as expected in InferSchema mode, where it ignores the 
> 1st non header row even with *Treat First Line as Header* property set to 
> *false*. But with External schema reference the same controller service is 
> working as expected. (Attached images for SplitRecord with CSVReader)
> This setup was tested in 1.11.4, and with same configuration for CSVReader 
> with InferSchema was giving expected results.



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

Reply via email to