Repository navigation
Update explain output for ClickHouse 26.8 (batch 8: casts, statistics, regex operators, joins) - #135
Merged
kyleconroy merged 4 commits intoDec 1, 2026
Conversation
… explain printing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4KB7DMX365Nmn5ksnY
…BY DESC, drop query settings from engine SETTINGS 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
…ELETE db.table, WITH trailing comma 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
Batch 8 of the ClickHouse 26.8 explain work. Pending
explain_todostatements: 958 → 518.TestParserruns in parallel, so some outputs were flaky. A mutex inExplain/ExplainStatementsfixes this; about 140 statements started passing with it.x::Toperands followParserCastOperator. Only numbers, strings and brackets stay as source text. One-element tuples(x,)and words likenan/NULLare parsed as normal expressions.defaultValueOfTypeName('<type>')now takes an argument, the column type may be omitted, and any expression may follow (includingCODEC(...)).MATERIALIZE/CLEAR STATISTICS ALLand bare statistics types such asTYPE basic.CreateSQLFunctionQuerynaming,ORDER BY (a DESC, ...)wraps every key, and query-level settings are dropped from a MergeTree/Log/Memory/Null/KafkaSETTINGSclause (list generated fromsystem.settingsminussystem.merge_tree_settings).LIMIT n BY ALL~ ~* !~ !~*, including withSOME/ALLFROM (t1 JOIN t2 ON ...)trim(s, chars), plustrim(...)as a table functioneval(SELECT ...)DELETE FROM db.tWITH x AS a, SELECT(trailing comma)settingsas a column nameWITHnow merges with theWITHinherited from the first union armtrim(... '' FROM s)is no longer simplified away, matching 26.x.Test Plan
go test ./parser/... ./lexer/... -timeout 30spasses.go test ./parser/... -check-explainwas run, and the updatedmetadata.jsonfiles are included.EXPLAIN AST.Generated by Claude Code