jon-chuang opened a new issue, #2480:
URL: https://github.com/apache/arrow-datafusion/issues/2480
**Describe the solution you'd like**
Logical optimizer only walks LogicalPlan node inputs. However,
realistically, every optimizer should now also walk every subquery by matching
on `Filter(Filter { expr: conjunction(vec![.., InSubquery/Exists { subquery },
..] }` and optimize the subquery too.
One solution may be to declare subqueries as one of the inputs to the plan
nodes...? However, this may "denormalize" certain things, so it may be better
to add a helper function (based on e.g. visit/accept) that makes it easy for
all optimizations to detect and walk subqueries.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]