Expr::apply_children/map_children & LogicalPlan::map_expressions does not correctly map subquery outer_ref_column
expressions
#16147
Labels
bug
Something isn't working
Describe the bug
The TreeNode implementation for
Expr
does not handle theouter_ref_column
expressions present in theSubquery
nodes ofExpr::InSubquery
,Expr::ScalarSubquery
, andExpr::Exists
.The LogicalPlan::map_expressions implementation does not handle the
outer_ref_column
expression inLogicalPlan::Subquery
To Reproduce
Create a LogicalPlan from a SQL statement with a subquery expression that has an outer column reference, i.e.
I would expect to be able to do something like this:
Expected behavior
The
outer_ref_column
expressions are part of the TreeNode visitor implementations in both Expr and LogicalPlanAdditional context
I will not work on this, so someone should feel free to take this. There is a workaround if you know about this behavior, which is to match on the expressions/plans which contain these outer ref column expressions.
The text was updated successfully, but these errors were encountered: