tdbgamer commented on a change in pull request #8914: [FLINK-12929] Pass 
TypeInformation in addSource
URL: https://github.com/apache/flink/pull/8914#discussion_r345945712
 
 

 ##########
 File path: 
flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala/StreamExecutionEnvironment.scala
 ##########
 @@ -615,7 +615,7 @@ class StreamExecutionEnvironment(javaEnv: JavaEnv) {
     
     val cleanFun = scalaClean(function)
     val typeInfo = implicitly[TypeInformation[T]]
-    asScalaStream(javaEnv.addSource(cleanFun).returns(typeInfo))
+    asScalaStream(javaEnv.addSource(cleanFun, typeInfo))
 
 Review comment:
   Is there a reason why the `returns` call was removed here? This has broken 
our microservices we have upgraded to 1.9.1 since the output type of the 
transformer doesn't get set and later fails when the resulting DataStream is 
used.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to