Stop copying LogicalPlan and Exprs in EliminateNestedUnion
#10296
Labels
good first issue
Good for newcomers
EliminateNestedUnion
#10296
Is your feature request related to a problem or challenge?
Part of #9637
As part of making the planner faster, we are updating the optimizer passes to avoid copying
LogicalPlan
andExpr
(see #9637)Describe the solution you'd like
I would like to reduce the amount of copying in this pass (even though it doesn't appear in current profiling)
Describe alternatives you've considered
Apply the model from @Lordworms in #10166 to this pass
2. Update OptimizerRule::supports_rewrite` to return true
OptimizerRule
to userewrite
TreeNode
API) - it is implemented forLogicalPlan
(API) andExpr
(API)Other examples: #10218
Additional context
I think this will be a pretty simple refactor with a good existing pattern, so mark this as good first issue
The text was updated successfully, but these errors were encountered: