[EPIC] Integrate SQLStorm test suite into DataFusion
- Dominant language
- Rust
- Stars
- 9.3k
- Forks
- 2.4k
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 344
Description
### Is your feature request related to a problem or challenge?
SQLStorm is a LLM-gemerated benchmark/test suite https://github.com/SQL-Storm/SQLStorm
Code: https://github.com/2010YOUY01/datafusion-sqlstorm
It includes 10k+ queries for well-known datasets like TPC-H, TPC-DS, and JOB. These queries have been tested against DuckDB and PostgreSQL to ensure validity.
Running SQLStorm queries against DataFusion can improve test coverage and help identify optimization opportunities.
### Describe the solution you'd like
1. Implement a runner to execute SQLStorm-generated queries
2. Report failures, and queries that are significantly slower (or more memory-consuming) than DuckDB
- I think most of them will be caused by bad join order since DF don't have an optimizer for join ordering, we can first identify slow queries caused by other reasons first
3. Add those queries to (extended) CI for testing
I just did an initial implementation, with many query failures found. I’ll spend some time reporting the bugs and will provide an update soon.
### Describe alternatives you've considered
_No response_
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.