alamb opened a new issue, #19795: URL: https://github.com/apache/datafusion/issues/19795
### Is your feature request related to a problem or challenge? DataFusion can theoretically plan queries of almost any complexity. However, for moderately complex queries, especially those involving `UNION`S or deeply nested plans, it can sometimes take *seconds* to plan they query At InfluxData we have had to disable certain equivalence checks because without doing so the planning time becomes exponential (and effectively locks up one of our cores) Basically I would like to use this ticket to coordinate / start making meaningful progress reducing the planning time for DataFusion. ### Describe the solution you'd like We have fairly thorough benchmarks at this point that I think covers many use cases. ```shell cargo bench --bench sql_planner ``` If anyone wants to help with this EPIC an excellent first step to do would be 1. Contribute example queries that are slow to plan in your environment 2. Spend time profiling the existing benchmarks to identify potential performance improvements ### Describe alternatives you've considered Issues reporting slow planning time - [ ] https://github.com/apache/datafusion/issues/17261 - [ ] https://github.com/apache/datafusion/issues/7698 Ideas to potentially increase performance - [ ] https://github.com/apache/datafusion/issues/9144 - [ ] https://github.com/apache/datafusion/issues/9577 Prior Epics - [ ] https://github.com/apache/datafusion/issues/13015 - [ ] https://github.com/apache/datafusion/issues/5637 ### Additional context _No response_ -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
