yunfengzhou-hub commented on code in PR #23944:
URL: https://github.com/apache/flink/pull/23944#discussion_r1429620891


##########
flink-clients/src/main/java/org/apache/flink/client/FlinkPipelineTranslationUtil.java:
##########
@@ -40,8 +43,16 @@ public static JobGraph getJobGraph(
         FlinkPipelineTranslator pipelineTranslator =
                 getPipelineTranslator(userClassloader, pipeline);
 
-        return pipelineTranslator.translateToJobGraph(
-                pipeline, optimizerConfiguration, defaultParallelism);
+        JobGraph jobGraph =
+                pipelineTranslator.translateToJobGraph(
+                        pipeline, optimizerConfiguration, defaultParallelism);
+
+        Map<String, String> parallelismOverrides =
+                
optimizerConfiguration.get(PipelineOptions.PARALLELISM_OVERRIDES);
+        jobGraph.getJobConfiguration()
+                .set(PipelineOptions.PARALLELISM_OVERRIDES, 
parallelismOverrides);
+

Review Comment:
   Thanks for the suggestion @JunRuiLee. I agree it better distinguishes 
between an unset configuration and a configured but empty map. I have updated 
the PR according to this.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to