[ 
https://issues.apache.org/jira/browse/FLINK-1906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fabian Hueske closed FLINK-1906.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 0.9

Fixed in 6a1edc8edcc576896106730cbb537886e5afa09a

> Add tip to work around plain Tuple return type of project operator
> ------------------------------------------------------------------
>
>                 Key: FLINK-1906
>                 URL: https://issues.apache.org/jira/browse/FLINK-1906
>             Project: Flink
>          Issue Type: Improvement
>          Components: Documentation
>    Affects Versions: 0.9
>            Reporter: Fabian Hueske
>            Assignee: Chiwan Park
>            Priority: Minor
>              Labels: starter
>             Fix For: 0.9
>
>
> The Java compiler is not able to infer the return type of the {{project}} 
> operator and defaults to {{Tuple}}. This can cause problems if another 
> operator is immediately called on the result of a {{project}} operator such 
> as:
> {code}
> DataSet<Tuple5<String,String,String,String,String>> ds = ....
> DataSet<Tuple1<String>> ds2 = ds.project(0).distinct(0);
> {code} 
> This problem can be overcome by hinting the return type of {{project}} like 
> this:
> {code}
> DataSet<Tuple1<String>> ds2 = ds.<Tuple1<String>project(0).distinct(0);
> {code}
> We should add this description to the documentation of the project operator.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to