Skip to content

Conversation

@kyleconroy
Copy link
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.

3 participants