Package io.trino.sql.planner
Class PlanCopier
java.lang.Object
io.trino.sql.planner.PlanCopier
Clones plan and assigns new PlanNodeIds to the copied PlanNodes.
Also, replaces all symbols in the copied plan with new symbols.
The original and copied plans can be safely used in different
branches of plan.
-
Method Summary
Modifier and TypeMethodDescriptionstatic NodeAndMappingscopyPlan(PlanNode plan, List<Symbol> fields, SymbolAllocator symbolAllocator, PlanNodeIdAllocator idAllocator)
-
Method Details
-
copyPlan
public static NodeAndMappings copyPlan(PlanNode plan, List<Symbol> fields, SymbolAllocator symbolAllocator, PlanNodeIdAllocator idAllocator)
-