Skip to content

Parse new ClickHouse 26.x syntax (batch 5) - #132

Open
kyleconroy wants to merge 7 commits into
claude/project-thread-8e2oya-syntax-4from
claude/project-thread-8e2oya-syntax-5
Open

kyleconroy wants to merge 7 commits into
claude/project-thread-8e2oya-syntax-4from
claude/project-thread-8e2oya-syntax-5

Conversation

@kyleconroy

Copy link
Copy Markdown
Collaborator

Requested by Kyle · project thread

Summary

Fifth batch of ClickHouse 26.8 syntax and EXPLAIN AST changes, stacked on batch 4. Pending explain statements drop from 2,038 to 1,694.

  • SYSTEM queries whose argument isn't a table (disks, models, listener protocols, failpoints, FLUSH ASYNC INSERT QUEUE, JEMALLOC, KILL, SHUTDOWN, ...) no longer print it as a child. UNLOAD DICTIONARY behaves like RELOAD DICTIONARY, and ON CLUSTER may follow the name.
  • DEFINER = ... / SQL SECURITY ... on views and materialized views (View SQL Security), plus ALTER TABLE ... MODIFY SQL SECURITY.
  • CREATE HANDLER ... AS <query> and DROP HANDLER.
  • TimeSeries DATA / TAGS / METRICS / [RECENT] SAMPLES targets, including INNER ENGINE and INNER COLUMNS (ViewTargets).
  • VALID UNTIL on users and on individual authentication methods.
  • x AT TIME ZONE tz / x AT LOCAL (toTimeZone), OVERLAY(s PLACING r FROM p [FOR n]), and Settings as a plain function argument (has(Settings, 'x')).
  • EXPLAIN ANALYZE, aliased (EXPLAIN ...) subqueries, and (VALUES (...), (...)) table subqueries (SQLStandardValues).

Test Plan

  • go test ./parser/... -timeout 30s passes.
  • Ran go test ./parser/... -check-explain and committed the updated metadata.json files.
  • Spot-checked each construct against a local ClickHouse 26.8 server's EXPLAIN AST.

Generated by Claude Code

Disks, models, listener protocols, failpoints and similar names are not
tables, so 26.x prints these SYSTEM queries without children. Also handle
UNLOAD DICTIONARY like RELOAD DICTIONARY and ON CLUSTER after the name.

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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LuRZ4KB7DMX365Nmn5ksnY
… function argument

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
@kyleconroy kyleconroy self-assigned this Dec 1, 2026
@kyleconroy
kyleconroy added this pull request to stack #128 December 1, 2026 05:42
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.

2 participants