Repository navigation
Sync test queries with ClickHouse 26.8 LTS - #126
Merged
kyleconroy merged 3 commits intoDec 1, 2026
Merged
kyleconroy merged 3 commits into
kyleconroy merged 3 commits into
Conversation
cmd/sync-tests copies ClickHouse's stateless SQL tests into parser/testdata, so the fixtures can be refreshed for each release. The test harness now turns a panic into a failure of that statement (or an explain_todo entry with -mark-todo) instead of aborting the run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4KB7DMX365Nmn5ksnY
Import the stateless SQL tests from ClickHouse v26.8.51.4-lts with cmd/sync-tests: 4,034 new tests and 1,428 tests whose queries changed upstream. Explain files were generated with cmd/regenerate-explain and statements that don't pass yet are marked explain_todo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4KB7DMX365Nmn5ksnY
kyleconroy
force-pushed
the
claude/project-thread-8e2oya-sync-tests
branch
from
December 1, 2026 04:55
325b992 to
9c89118
Compare
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.
Requested by Kyle · project thread
Summary
Syncs
parser/testdatawith the stateless SQL tests of ClickHouse v26.8.51.4-lts:query.sqlchanged upstream. Their old explain files andexplain_todoentries are dropped and regenerated.Adds
cmd/sync-testsso the next release is one command:go run ./cmd/sync-tests -src <ClickHouse>/tests/queries/0_stateless, then regenerate and-mark-todo.The test harness now turns an explainer panic into a failure of that statement, or an
explain_todoentry with-mark-todo, instead of aborting the whole run.About 97% of the new tests' statements already match. 3,649 statements across the suite are in
explain_todo; about 1,100 are parse errors from new syntax. Examples:EMPTY AS SELECT,SOME (subquery), JSON.@path,APPLY PATCHES,EXECUTE AS,CREATE MASKING POLICY, pipe operators|>,UNIQUE KEY, compound interval literals, and table column alias lists. Follow-up PRs work through them.Heads-up: this roughly doubles the number of fixture files, from about 127k to 233k. The packed repo stays at about 20 MB.
Test Plan
go run ./cmd/sync-tests,go run ./cmd/regenerate-explain, thengo test ./parser/... -mark-todo.go test ./...passes.Generated by Claude Code