Kikyou1997 commented on code in PR #9993: URL: https://github.com/apache/incubator-doris/pull/9993#discussion_r892077031
########## 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: done -- 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-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org