You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[EPIC] Run full sqllogic / sqlite test suite against DataFusion #13811
Is your feature request related to a problem or challenge?
As DataFusion matures and becomes the foundation for more and more systems, ensuring it works bug free with many SQL queries is even more important. We have our own substantial test suites, but we still find issues from time to time, and more systematic testing would be even better
organize the follow on items that @Omega359 discovered during initial implementation
Describe the solution you'd like
As described on #13470, there is a well known, very large corpus of sql test files originally from sqlite in sqllogictest format. It is common for other sql engines to run these scripts
I regenerated the sqlite slt files (apache/datafusion-testing#4) to switch REAL -> FLOAT8 and change how DF errors are handled. Instead of skipif Datafusion they are now query error/statement error with the expected results move into the comments. This should mean that any changes in DF that either break/change/fix the sqlite tests will show immediately.
After the above PR is approved I believe the only blocker left is #13784 but I am not 100% certain on that.
Many of the cast to Int issues are caused by the fact that in sqlite int is a flexible width data type - 0, 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of the value.
Activity
Omega359 commentedon Dec 17, 2024
A quick grep and cleaning of DF errors that resulted in a query being marked as 'skipif Datafusion':
2010YOUY01 commentedon Jan 2, 2025
Those
skipifs might also need manual inspections for potential bugs 🤔Done:
Error during planning: Cannot automatically convert ... to NullIncorrectNULLhandling inBETWEENexpression #13976Schema error: Schema contains duplicate unqualified field name ...Referencing a column fromselectandorder byclauses triggers duplicate expression error #13558alamb commentedon Jan 2, 2025
Thank you @2010YOUY01
Omega359 commentedon Jan 11, 2025
Ticket filed for RecursionLimitExceeded: #13811
Omega359 commentedon Jan 11, 2025
I regenerated the sqlite slt files (apache/datafusion-testing#4) to switch REAL -> FLOAT8 and change how DF errors are handled. Instead of skipif Datafusion they are now query error/statement error with the expected results move into the comments. This should mean that any changes in DF that either break/change/fix the sqlite tests will show immediately.
After the above PR is approved I believe the only blocker left is #13784 but I am not 100% certain on that.
Omega359 commentedon Jan 12, 2025
Issue for avg(distinct) support - #2408
This I believe would be a useful addition if someone is able to take it on.
Omega359 commentedon Jan 12, 2025
Many of the cast to Int issues are caused by the fact that in sqlite int is a flexible width data type - 0, 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of the value.
alamb commentedon Jan 14, 2025
Thanks @Omega359 -- I added #13784 #2408 and #13811 to this ticket's description and merged apache/datafusion-testing#4
Onwards!
alamb commentedon Jan 27, 2025
Shall we claim this epic is finished? I think it is mostly complete
Omega359 commentedon Jan 27, 2025
Yes. The only thing left for me wrt the sqlite test suite is #14290