Skip to content

test: assert generated SQL parses under the Doris dialect - #47

Merged
maruyue merged 1 commit into
mainfrom
fix/no-insert-on-read
Oct 21, 2026
Merged

maruyue merged 1 commit into
mainfrom
fix/no-insert-on-read

Conversation

@maruyue

@maruyue maruyue commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Adds an offline check that every statement generated by the metadata probe, the read path and the migration parses under sqlglot's Doris dialect (placeholders substituted).

Why: the "No database selected" regression fixed in #46 slipped through because mocked tests never validate SQL. Parsing catches syntax-level mistakes offline; #46 style issues (missing qualifier) are covered by the existing assertions in the same file.

No production code changes.

Mocked tests validate control flow, not SQL. Every statement emitted by the
metadata probe, the read path and the migration is now parsed with sqlglot's
Doris dialect (placeholders substituted), so syntax regressions fail offline.
@maruyue
maruyue merged commit 3885e0c into main Oct 21, 2026
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.

1 participant