You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/05/07 20:09:51 UTC

[GitHub] [arrow-datafusion] jon-chuang opened a new issue, #2480: [Feature] Logical optimizer should walk subqueries

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: github-unsubscribe@arrow.apache.org.apache.org

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