Skip to content

Add CREATE INDEX statement parsing and EXPLAIN output#94

Merged
kyleconroy merged 1 commit intomainfrom
claude/fix-more-tests-uiqWv
Dec 30, 2025
Merged

Add CREATE INDEX statement parsing and EXPLAIN output#94
kyleconroy merged 1 commit intomainfrom
claude/fix-more-tests-uiqWv

Conversation

@kyleconroy
Copy link
Copy Markdown
Collaborator

Add support for CREATE [UNIQUE] INDEX statements:

  • Add CreateIndexQuery AST type with IndexName, Table, and Columns fields
  • Parse CREATE INDEX and CREATE UNIQUE INDEX statements
  • Generate proper EXPLAIN AST output matching ClickHouse format

This fixes over 1000 explain tests across:

  • 02813_create_index_noop (999 statements)
  • 02814_create_index_uniq_noop (1 statement)

Add support for CREATE [UNIQUE] INDEX statements:
- Add CreateIndexQuery AST type with IndexName, Table, and Columns fields
- Parse CREATE INDEX and CREATE UNIQUE INDEX statements
- Generate proper EXPLAIN AST output matching ClickHouse format

This fixes over 1000 explain tests across:
- 02813_create_index_noop (999 statements)
- 02814_create_index_uniq_noop (1 statement)
@kyleconroy kyleconroy merged commit 18d833e into main Dec 30, 2025
1 check passed
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