suxiaogang223 commented on code in PR #60063:
URL: https://github.com/apache/doris/pull/60063#discussion_r2715635381


##########
fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/rewrite/RewriteGroupTask.java:
##########
@@ -234,6 +237,11 @@ private ConnectContext buildConnectContext() {
         // Clone session variables from parent
         
taskContext.setSessionVariable(VariableMgr.cloneSessionVariable(connectContext.getSessionVariable()));
 
+        // Calculate optimal parallelism and determine distribution strategy
+        RewriteStrategy strategy = calculateRewriteStrategy();
+        // Pipeline engine uses parallelPipelineTaskNum to control instance 
parallelism.
+        taskContext.getSessionVariable().parallelPipelineTaskNum = 
strategy.parallelism;

Review Comment:
   Because the parameter of the setParallelPipelineTaskNum API is a string, it 
needs to be parsed first, so the value is assigned directly here.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to