Skip to content

Parse new ClickHouse 26.x syntax (batch 2) - #129

Open
kyleconroy wants to merge 3 commits into
claude/project-thread-8e2oya-syntax-1from
claude/project-thread-8e2oya-syntax-2
Open

kyleconroy wants to merge 3 commits into
claude/project-thread-8e2oya-syntax-1from
claude/project-thread-8e2oya-syntax-2

Conversation

@kyleconroy

Copy link
Copy Markdown
Collaborator

Requested by Kyle · project thread

Summary

Second batch of ClickHouse 26.x syntax, stacked on #127. It takes explain_todo from 2,900 to 2,743 statements.

  • EXECUTE AS user [statement] (ExecuteAsQuery)
  • CREATE/ALTER/DROP MASKING POLICY and SHOW CREATE MASKING POLICY
  • SHOW USERS/ROLES/QUOTAS/[ROW|MASKING] POLICIES/SETTINGS PROFILES, including CURRENT/ENABLED variants
  • UNIQUE KEY in CREATE TABLE, printed between ORDER BY and SAMPLE BY
  • A primary key declared in the column list now prints as the storage PRIMARY KEY, as ClickHouse 26 does

No golden explain*.txt file was edited.

Test Plan

  • Each change was compared against EXPLAIN AST from a local ClickHouse 26.8.51.4 server.
  • go test ./parser/... -check-explain removed the newly passing statements from explain_todo.
  • go test ./... passes.

Generated by Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LuRZ4KB7DMX365Nmn5ksnY
Supports CREATE/ALTER/DROP MASKING POLICY, SHOW CREATE MASKING POLICY,
and SHOW USERS/ROLES/QUOTAS/[ROW|MASKING] POLICIES/SETTINGS PROFILES and
their CURRENT/ENABLED variants.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LuRZ4KB7DMX365Nmn5ksnY
- CREATE TABLE ... UNIQUE KEY expr, printed between ORDER BY and SAMPLE BY.
- A primary key declared in the column list is printed as the storage
  PRIMARY KEY, as ClickHouse 26 does.

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