You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Georgi Krastev (JIRA)" <ji...@apache.org> on 2017/03/31 12:29:41 UTC
[jira] [Comment Edited] (FLINK-2197) Scala API is not working when
using batch and streaming API in the same program
[ https://issues.apache.org/jira/browse/FLINK-2197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15950782#comment-15950782 ]
Georgi Krastev edited comment on FLINK-2197 at 3/31/17 12:28 PM:
-----------------------------------------------------------------
If the implicits are moved to package object {{api.common.typeinfo}} (the package of {{TypeInformation}}), they don't have to be imported at all.
was (Author: joro.kr.21):
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)