wuchong commented on a change in pull request #8718: 
[FLINK-12824][table-planner-blink] Set parallelism for stream SQL
URL: https://github.com/apache/flink/pull/8718#discussion_r293765451
 
 

 ##########
 File path: 
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/plan/nodes/physical/stream/StreamExecTableSourceScan.scala
 ##########
 @@ -88,11 +89,17 @@ class StreamExecTableSourceScan(
     replaceInput(ordinalInParent, newInputNode.asInstanceOf[RelNode])
   }
 
+  def getSourceTransformation(
+      streamEnv: StreamExecutionEnvironment): StreamTransformation[_] = {
+    
tableSource.asInstanceOf[StreamTableSource[_]].getDataStream(streamEnv).getTransformation
 
 Review comment:
   We should cache the source transformation in this node to avoid calling 
`getDataSteram` multiple times which will lead to multiple source 
transformation in JobGraph.  And make sure to call this 
`getSourceTransformation` instead of `getDataStream` in this class.

----------------------------------------------------------------
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