englefly commented on code in PR #59517:
URL: https://github.com/apache/doris/pull/59517#discussion_r2663507068


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/jobs/rewrite/CostBasedRewriteJob.java:
##########
@@ -56,6 +61,11 @@ public CostBasedRewriteJob(List<RewriteJob> rewriteJobs) {
         // need to generate real rewrite job list
     }
 
+    private void restoreCteProducerMap(StatementContext context, Map<CTEId, 
LogicalPlan> currentCteProducers) {
+        context.getRewrittenCteProducer().clear();
+        currentCteProducers.forEach(context.getRewrittenCteProducer()::put);

Review Comment:
   你的问题是 为什么不put all吗?这里就是put all



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