Skip to content

test: add a seeded bounded SQL query generator - #54

Merged
Aybavs merged 1 commit into
mainfrom
test/46-generator
Aug 4, 2026
Merged

test: add a seeded bounded SQL query generator#54
Aybavs merged 1 commit into
mainfrom
test/46-generator

Conversation

@Aybavs

@Aybavs Aybavs commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Emits queries from a bounded grammar — projections, WHERE with AND/OR/NOT and IS [NOT] NULL, ORDER BY, LIMIT, and GROUP BY/HAVING with aggregates — so the differential tests explore combinations a handwritten corpus would miss.

Seeded, so any failure replays exactly. A coverage test asserts 400 queries actually reach every clause rather than emitting trivial selects.

Constructs where this engine and SQLite differ by design are not generated: integer division (SQLite floors it), cross-type comparisons (rejected here, coerced there), and booleans (stored as integers there). Operands always share a type, and aggregate queries always group by the column they project rather than relying on SQLite's bare-column extension.

Closes #46

@Aybavs
Aybavs merged commit 67a00b3 into main Aug 4, 2026
1 check passed
@Aybavs
Aybavs deleted the test/46-generator branch August 4, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: add a seeded bounded SQL query generator

1 participant