liukun4515 commented on code in PR #3764:
URL: https://github.com/apache/arrow-datafusion/pull/3764#discussion_r990612019


##########
datafusion/optimizer/src/optimizer.rs:
##########
@@ -144,6 +144,10 @@ impl Optimizer {
             Arc::new(DecorrelateWhereIn::new()),
             Arc::new(ScalarSubqueryToJoin::new()),
             Arc::new(SubqueryFilterToJoin::new()),
+            // simplify expressions does not simplify expressions in 
subqueries, so we

Review Comment:
   I think it's a solution to resolve this.
   But We also has a way to resolve this issue by supporting the `subquery` in 
the rewriter of `simplify expression`.
   Why not support the `subquery` in the rewriter of simplify expression?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to