This should do the trick val csvTableSource = new CsvTableSource("foobar",
Array("base"),
Array[org.apache.flink.api.common.typeinfo.TypeInformation[_]](Types.STRING)).
The problem is that arrays in Scala are not covariant.

Cheers,
Till
​

On Fri, Feb 3, 2017 at 6:39 AM, nsengupta <sengupta.nirma...@gmail.com>
wrote:

> Til,
>
> FWIW, I have fired the entire testsuite for Flink latest Snapshot.
>
> Almost all testcases passed, particularly this one:
>
> <http://apache-flink-user-mailing-list-archive.2336050.
> n4.nabble.com/file/n11422/Selection_254.png>
>
> This case uses a bulit-in loaded CSV (in
> org.apache.flink.table.api.scala.batch.TableSourceTest.scala):
>
> <http://apache-flink-user-mailing-list-archive.2336050.
> n4.nabble.com/file/n11422/Selection_255.png>
>
> Because this testcase runs, I presume that compiler is able to sort out the
> TypeInformation while building Flink-libraries, but while running, it is
> failing to do so, for some reason.
>
> -- Nirmalya
>
>
>
>
>
> --
> View this message in context: http://apache-flink-user-
> mailing-list-archive.2336050.n4.nabble.com/Compiler-error-
> while-using-CsvTableSource-tp11412p11422.html
> Sent from the Apache Flink User Mailing List archive. mailing list archive
> at Nabble.com.
>

Reply via email to