You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/08/01 02:22:50 UTC

[GitHub] [flink] XuPingyong commented on a change in pull request #9277: [FLINK-13494][table-planner-blink] Only use env parallelism for sql job

XuPingyong commented on a change in pull request #9277: [FLINK-13494][table-planner-blink] Only use env parallelism for sql job
URL: https://github.com/apache/flink/pull/9277#discussion_r309501076
 
 

 ##########
 File path: flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/plan/nodes/physical/stream/StreamExecExchange.scala
 ##########
 @@ -104,6 +106,7 @@ class StreamExecExchange(
           inputTransform,
           partitioner.asInstanceOf[StreamPartitioner[BaseRow]])
         transformation.setOutputType(outputTypeInfo)
+        transformation.setParallelism(ExecutionConfig.PARALLELISM_DEFAULT)
 
 Review comment:
   I think it is better to use ExecutionConfig.PARALLELISM_DEFAULT instead of -1 or env.Parallelism. 
   ExecutionConfig.PARALLELISM_DEFAULT means table do not set specific parallelism for  transformations and its parallelism is to be decided by runtime. 
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services