flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-4801) Input type inference is faulty with custom Tuples and RichFunctions
Date Tue, 15 Nov 2016 13:38:58 GMT

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

ASF GitHub Bot commented on FLINK-4801:
---------------------------------------

Github user twalthr commented on the issue:

    https://github.com/apache/flink/pull/2625
  
    Merging this...


> Input type inference is faulty with custom Tuples and RichFunctions
> -------------------------------------------------------------------
>
>                 Key: FLINK-4801
>                 URL: https://issues.apache.org/jira/browse/FLINK-4801
>             Project: Flink
>          Issue Type: Bug
>          Components: Type Serialization System
>            Reporter: Timo Walther
>            Assignee: Timo Walther
>
> This issue has been discussed on the ML:
> http://apache-flink-mailing-list-archive.1008284.n3.nabble.com/Type-problem-in-RichFlatMapFunction-when-using-GenericArray-type-td13929.html
> This returns the wrong type:
> {code}
>   public static class Foo<K> extends Tuple2<K[], K> {
>     public Foo() {
>     }
>     public Foo(K[] value0, K value1) {
>       super(value0, value1);
>     }
>   }
>     DataSource<Foo<T>> fooDataSource = env.fromElements(foo);
>     DataSet<Foo<T>> ds = fooDataSource.join(fooDataSource)
>       .where(field).equalTo(field)
>       .with(new RichFlatJoinFunction<Foo<T>, Foo<T>, Foo<T>>()
{
>         @Override
>         public void join(Foo<T> first, Foo<T> second,
>           Collector<Foo<T>> out) throws Exception {
>           out.collect(first);
>         }
>       });
> {code}



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

Mime
View raw message