Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
Description
In scala.StreamExecutionEnvironment.addSource I would expect that typeInfo is also passed to the javaEnv.addSource as second parameter and not only passed to the returns method:
def addSource[T: TypeInformation](function: SourceFunction[T]): DataStream[T] = { require(function != null, "Function must not be null.") val cleanFun = scalaClean(function) val typeInfo = implicitly[TypeInformation[T]] asScalaStream(javaEnv.addSource(cleanFun, <missing typeInfo>).returns(typeInfo)) }
Attachments
Issue Links
- causes
-
FLINK-14757 scala.StreamExecutionEnvironment Doesn't set return type upon adding source
- Open
- links to