risinglightdb/sqllogictest-rs

Tracking: run SQLite sqllogictest suite

skyzh opened this issue · 10 comments

skyzh commented

We can add a SQLite backend to sqllogictest-bin and see how compatible it is with the original SQLite's sqllogictest. Though we didn't consider compatibility when we started this project, it's never too late to see how compatible we are for now. 🤣

skyzh commented

🤣🤣

tv42 commented

Another thing that'll break those tests is lack of support for valuesort.

tv42 commented

Another is that sqlite tests think CAST ( - 55 AS REAL ) should have query I and output -55, not R and -55.000. That is, sqlite doesn't really keep track of floats vs integers, if a float has no decimals it's stored as an integer (https://www.sqlite.org/sqllogictest/doc/trunk/about.wiki).

This one is more for the runner, not the harness. Or for anyone trying to repurpose SQLite tests for other backends.

tv42 commented

And #122 (trailing comments)

tv42 commented

SQLite & Postgres allow duplicate column names in results: apache/datafusion#8379 (comment)

tv42 commented

SQLite & Postgres allow AVG(DISTINCT), and this is seen a lot in the tests: apache/datafusion#2408

xxchan commented
tv42 commented

Sorry, I just realized I wrote datafusion comments here. Nevermind that, those problems are downstream from this project.

tv42 commented

And value-wise query results #108 (column-per-line instead of line-per-row).