Kikyou1997 commented on code in PR #19934:
URL: https://github.com/apache/doris/pull/19934#discussion_r1206205178


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/CascadesContext.java:
##########
@@ -98,6 +101,18 @@ public class CascadesContext implements ScheduleContext, 
PlanSource {
 
     private Optional<Scope> outerScope = Optional.empty();
 
+    private Map<Integer, Set<LogicalCTEConsumer>> cteIdToConsumer = new 
HashMap<>();
+
+    private Map<Integer, Callable<LogicalPlan>> cteIdToCTEClosure = new 
HashMap<>();
+
+    private Map<Integer, Set<Expression>> cteIdToFilter = new HashMap<>();
+
+    private Map<Integer, Set<Expression>> cteIdToProject = new HashMap<>();
+
+    private Map<Integer, Set<Expression>> consumerIdToFilter = new HashMap<>();
+
+    private Map<Integer, Set<Integer>> cteIdToConsumerUnderProject = new 
HashMap<>();

Review Comment:
   This is used in the CTERewrite....



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