apache / datafusion

Apache DataFusion SQL Query Engine
https://datafusion.apache.org/
Apache License 2.0
5.48k stars 1.01k forks source link

Additional ideas for optimizing subqueries #5484

Open alamb opened 1 year ago

alamb commented 1 year ago

Originally from @jon-chuang on https://github.com/apache/arrow-datafusion/issues/2248#issuecomment-1120280963, copied to new ticket so it didn't get lost:

Some additional ideas for subquery optimizations:

More generally, one can attempt this approach, which is a lot less messy than relying on countless rewriting heuristics (which is also highly error-prone):

mingmwang commented 1 year ago

https://github.com/apache/arrow-datafusion/issues/5492

mingmwang commented 1 year ago

I will work on it.