You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Till Rohrmann (JIRA)" <ji...@apache.org> on 2015/03/30 12:53:54 UTC
[jira] [Created] (FLINK-1799) Scala API does not support generic
arrays
Till Rohrmann created FLINK-1799:
------------------------------------
Summary: Scala API does not support generic arrays
Key: FLINK-1799
URL: https://issues.apache.org/jira/browse/FLINK-1799
Project: Flink
Issue Type: Bug
Reporter: Till Rohrmann
Assignee: Aljoscha Krettek
The Scala API does not support generic arrays at the moment. It throws a rather unhelpful error message ```InvalidTypesException: The given type is not a valid object array```.
Code to reproduce the problem is given below:
{code}
def main(args: Array[String]) {
foobar[Double]
}
def foobar[T: ClassTag: TypeInformation]: DataSet[Block[T]] = {
val tpe = createTypeInformation[Array[T]]
null
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)