flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Georgi Krastev (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-2197) Scala API is not working when using batch and streaming API in the same program
Date Fri, 31 Mar 2017 12:27:41 GMT

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

Georgi Krastev commented on FLINK-2197:
---------------------------------------

If the implicits are moved to package object `api.common.typeinfo` (the package of `TypeInformation`),
they don't have to be imported at all.

> Scala API is not working when using batch and streaming API in the same program
> -------------------------------------------------------------------------------
>
>                 Key: FLINK-2197
>                 URL: https://issues.apache.org/jira/browse/FLINK-2197
>             Project: Flink
>          Issue Type: Bug
>          Components: DataSet API, DataStream API, Scala API
>            Reporter: Till Rohrmann
>
> If one uses the the Scala batch and streaming API from within the same program and imports
both corresponding package objects, then the Scala API no longer works because it is lacking
the implicit {{TypeInformation}} values. The reason for this is that both package objects
contain an implicit function {{createTypeInformation}}. This creates an ambiguity which is
not possible for the Scala compiler to resolve.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message