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

Aljoscha Krettek commented on FLINK-8008:
-----------------------------------------

I believe you can use this constructor instead:
{code}
public PojoCsvInputFormat(Path filePath, PojoTypeInfo<OUT> pojoTypeInfo, 
String[] fieldNames)
{code}

Here you can specify the fields and the order should match the order in the 
file.

> PojoTypeInfo should sort fields fields based on boolean
> -------------------------------------------------------
>
>                 Key: FLINK-8008
>                 URL: https://issues.apache.org/jira/browse/FLINK-8008
>             Project: Flink
>          Issue Type: Improvement
>          Components: DataSet API
>    Affects Versions: 1.3.2
>            Reporter: Muhammad Imran Tariq
>            Priority: Minor
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Flink PojoTypeInfo<T> sorts fields array that are passed into constructor 
> arguments. I want to create another constructor that takes boolean parameter 
> to sort field or not.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to