You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/06/07 12:32:23 UTC

[GitHub] [incubator-doris] wangshuo128 commented on a diff in pull request #9993: [feature](nereids) Plan Translator

wangshuo128 commented on code in PR #9993:
URL: https://github.com/apache/incubator-doris/pull/9993#discussion_r891161963


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/PlanContext.java:
##########
@@ -0,0 +1,49 @@
+package org.apache.doris.nereids.trees.plans;
+
+import org.apache.doris.analysis.Analyzer;
+import org.apache.doris.analysis.SlotDescriptor;
+import org.apache.doris.analysis.TupleDescriptor;
+import org.apache.doris.common.IdGenerator;
+import org.apache.doris.planner.PlanFragment;
+import org.apache.doris.planner.PlanFragmentId;
+import org.apache.doris.planner.PlanNodeId;
+
+import java.util.List;
+
+public class PlanContext {
+    private List<PlanFragment> planFragmentList;
+
+    private Analyzer analyzer;
+
+    private final IdGenerator<PlanFragmentId> fragmentIdGenerator = PlanFragmentId.createGenerator();
+
+    private final IdGenerator<PlanNodeId> nodeIdGenerator = PlanNodeId.createGenerator();
+
+    public List<PlanFragment> getPlanFragmentList() {
+        return planFragmentList;
+    }
+
+    public TupleDescriptor generateTupleDesc() {
+        return analyzer.getDescTbl().createTupleDescriptor();

Review Comment:
   `DescTable` should not be placed in `Analyzer` anymore.



-- 
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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org