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

Brendan Buhr commented on NIFI-12491:
-------------------------------------

It would be nice to have the option similar to the ExcelToCSV processor where 
you can select the option of "first row is header" where it will use that to 
infer the schema to get the column header names.

I think this needs serious consideration just to bring it in line with 
expectations of all other inference readers

> ExcelReader - new Schema Access strategy: Use String Fields From Header
> -----------------------------------------------------------------------
>
>                 Key: NIFI-12491
>                 URL: https://issues.apache.org/jira/browse/NIFI-12491
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>    Affects Versions: 1.23.2
>            Reporter: Philipp Korniets
>            Priority: Major
>
> ExcelReader  needs an ability similar to CSVReader to "Use String Fields From 
> Header" as a Schema Access Strategy.
> Current implementation has:
> 1. Use Schema Name/Schema Text - this option relies on the order of the 
> columns. Possible issues - order of the columns change, but types dont. This 
> cause further calculations to be erroneous.
> 2. Infer Schema - replaces real column names with column_1,column_2 etc - 
> this again loses the "context" of the column and forces us to rely on how 
> columns are ordered. 
> Any workarounds make workflow more complicated.
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to