Modify LogicalPlan::apply_with_subqueries()
and LogicalPlan::visit_with_subqueries()
to return subqueries
#10678
Labels
enhancement
New feature or request
Is your feature request related to a problem or challenge?
in #10543 @peter-toth allowed the
TreeNode::apply
andTreeNode::visit
APIs to return referencesHowever
LogicalPlan::apply_with_subqueries()
andLogicalPlan::visit_with_subqueries()
, that are similar to TreeNode's base APIs but provide subquery support, weren't changed as well stricter easily.This is because in LogicalPlan::apply_expressions() and LogicalPlan::apply_subqueries() we create temporary Expr::eq, Expr::Column and LogicalPlan::Subquery objects that are not compatible with the root treenode's lifetime.
Describe the solution you'd like
Make apply_with_subqueries, visit_with_subqueries, etc have the same lifetimes
Change
datafusion/datafusion/expr/src/logical_plan/tree_node.rs
Lines 777 to 780 in c095fee
to be
Describe alternatives you've considered
@peter-toth says
Additional context
No response
The text was updated successfully, but these errors were encountered: