Repository navigation
Conversation
This was referenced Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2593. The rest continues in #2730.
Moves the comparison script into
test/dialect/as the first step of #2593. The test runs SQL text in alasql and in SQLite (bun:sqlite, so no new dependency) and compares the answers.Files
cases.sql: one statement per line. It starts with the expressions from the measurement in Dialect test: compare alasql with SQLite expression by expression in CI (the reference engine for v5) #2593.matrices/: one generator per area, built from the dimensions in the area's issue: subqueries (Subqueries: give each SELECT its own subqueries, one compiled form and a run context #2717), set operations (Set operations: parse UNION, INTERSECT and EXCEPT into a tree with their own ORDER BY and LIMIT #2718), ORDER BY (ORDER BY: one sort specification, keys beside the rows and one comparator #2720) and GROUP BY (GROUP BY: group keys as slots matched by structure, one aggregate interface and one partitioning step #2722).fixtures.sql: the tables both engines load first.expected-differences: each case where alasql differs from SQLite today, with alasql's answer, SQLite's answer and why.run.jsandREADME.md.Result (develop at be1b3dd, SQLite 3.43.2)
All 560 differences are listed, so the test passes. The 40 from
cases.sqlhave a reason. The 517 from the matrices say "Not reviewed yet.": they are recorded so that a refactor that changes any of them is caught. 3 cases are markedunstableand not checked. They sort numbers against text after a UNION with DESC, and alasql's answer flips between runs in one process (#2720, point 3).It fails when
A different SQLite answer (another SQLite version) is a note, not a failure.
Not in this PR (#2730)
bun testyet.alasql/dialect/sqlite, PGlite foralasql/dialect/postgres).