Repository navigation
Regenerate explain files with ClickHouse 26.8 LTS - #125
Open
kyleconroy wants to merge 11 commits into
Open
kyleconroy wants to merge 11 commits into
kyleconroy wants to merge 11 commits into
Conversation
Move cmd/regenerate-explain from 25.8.13.73 to 26.8.51.4 LTS and regenerate every explain file. - Query the server over HTTP instead of spawning clickhouse client for every statement. A full regeneration now takes under a minute. - Remove explain files for statements that the new version rejects, and for statement numbers past the end of query.sql. - Add a -mark-todo test flag that records failing statements in explain_todo instead of failing. 26.8 changed EXPLAIN AST output in many places (EnumDataType, TupleDataType, engines without arguments, empty array literals, window definitions, secret masking). The 4,344 statements whose output no longer matches are marked explain_todo and will be fixed in follow-ups. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4KB7DMX365Nmn5ksnY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4KB7DMX365Nmn5ksnY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4KB7DMX365Nmn5ksnY
ClickHouse 26 prints TYPE minmax without an argument list but keeps it for TYPE minmax(). Record whether the type had parentheses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4KB7DMX365Nmn5ksnY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4KB7DMX365Nmn5ksnY
List the columns of a multi-column index in the tuple, print TYPE arguments and a TYPE without parentheses as a bare function, and keep the database of db.table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4KB7DMX365Nmn5ksnY
ClickHouse 26 prints a WindowDefinition child for every OVER (...) clause and for each WINDOW clause element, with partition, order and frame offsets. Record whether OVER had parentheses to tell OVER w from OVER (w). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4KB7DMX365Nmn5ksnY
…use 26 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4KB7DMX365Nmn5ksnY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4KB7DMX365Nmn5ksnY
ClickHouse 26.8 rejects some statements while applying their SETTINGS (e.g. a negative timeout) rather than while parsing them. Keep the explain files for those, and add -v to print why each statement was rejected. 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-bump-26.8
branch
from
December 1, 2026 04:55
4ab5151 to
e9d9843
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4KB7DMX365Nmn5ksnY
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
Moves the golden EXPLAIN AST files from ClickHouse 25.8.13 LTS to 26.8.51.4 LTS and updates the explainer for the output changes in 26.x.
Tooling
cmd/regenerate-explainpins 26.8.51.4 and queries the server over HTTP instead of startingclickhouse clientfor each statement. A full regeneration now takes about 50 seconds instead of about 2.5 hours.query.sql. Other errors, such as invalid setting values, keep the existing file.-vprints why each statement was rejected.go test ./parser/... -mark-todoflag records failing statements inexplain_todoinstead of failing. Documented in CLAUDE.md.Explain changes to match 26.x
ENGINE = X()prints likeENGINE = X.Literal Array_[], including nested ones.TYPE minmaxwithout parentheses prints as a bare function.SETTINGSprint beforeFORMAT.CREATE INDEXlists the tuple columns, printsTYPEarguments, and keeps the database name.OVER (...)andWINDOWelements print aWindowDefinitionwith partition, order and frame offsets.TupleDataType,EnumDataType, and types with empty parentheses print the new way.The regeneration changed 4,344 statements' expected output. After these fixes, 609 remain in
explain_todo. The biggest remaining group is secret masking ('[HIDDEN]'literals), which I'll port in a follow-up.Test Plan
go run ./cmd/regenerate-explainagainst 26.8.51.4, thengo test ./parser/... -mark-todo.clickhouse clienton 300 tests.go test ./parser/... -check-explainremoved newly passing statements fromexplain_todo.go test ./...passes with no regressions.Generated by Claude Code