rewrite_expression
does not properly handle Exists
and ScalarSubquery
#2736
Labels
bug
Something isn't working
datafusion
Changes in the datafusion crate
good first issue
Good for newcomers
optimizer
Optimizer rules
Describe the bug
@Ted-Jiang found and fixed a bug (#2729) related to the fact an optimizer function
rewrite_expression
did not handleExpr::InList
correctlyDuring review @andygrove and I noticed there were likely some other
Expr
variants that suffered from the same issue: #2729 (comment)To Reproduce
Make a pushdown expression with the exprs following the model @Ted-Jiang used in #2729
Expected behavior
Any expr that contains an
Expr
within it should be rewrittenThe goal would be to review
expr_expressions
and ensure each variant matches the corresponding variant inrewrite_expression
. Bonus point for removingexpr_expressions
andrewrite_expression
and instead use anExprMutator
Additional context
See above
The text was updated successfully, but these errors were encountered: