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

Till Rohrmann commented on FLINK-2197:
--------------------------------------

I haven't found a good solution for this problem yet. Importing the function 
from the batch API adds it as a dependency to the streaming API. I think that's 
not what we want. We could pull {{createTypeInformation}} out into a new module 
which both APIs use. But then you always would have to import this package 
object and the package objects of the batch/streaming API if they contain more 
implicit values.

> 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
>            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.4#6332)

Reply via email to