You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Stephan Ewen (JIRA)" <ji...@apache.org> on 2015/02/03 13:26:34 UTC

[jira] [Resolved] (FLINK-1193) InvalidTypesException for Array[Array[Tuple2[Int, Double]]]

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

Stephan Ewen resolved FLINK-1193.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 0.9

Fixed via 57b3e9f9e50705033200dcca0762a5a65d1aba60

> InvalidTypesException for Array[Array[Tuple2[Int, Double]]]
> -----------------------------------------------------------
>
>                 Key: FLINK-1193
>                 URL: https://issues.apache.org/jira/browse/FLINK-1193
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Till Rohrmann
>            Assignee: Timo Walther
>             Fix For: 0.9
>
>
> The TypeExtractor cannot handle nested arrays with non-trivial element types. For example, the following code cannot be run
> {code}
> val input = env.fromCollection(List(1,2,3,4))
> val mapped = input.map{
>   id => {
>     val pair = (1,1.0)
>     val a = Array(pair)
>     val b = Array(a)
>     b
>   }
> }
> {code}
> The resulting type Array[Array[Tuple2[Int, Double]]] cannot be extracted. It would be nice, if Flink supported these types.



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