Skip to content

Conversation

@kyleconroy
Copy link
Collaborator

Add three new explain functions to properly format:

  • AlterQuery with all ALTER command types (ADD/DROP/MODIFY COLUMN,
    RENAME COLUMN, indexes, constraints, TTL, settings, partitions, etc.)
  • OptimizeQuery with FINAL suffix handling
  • TruncateQuery with database.table format

This enables 182+ previously failing explain tests to pass by properly
outputting the AST format expected by ClickHouse's EXPLAIN AST.

Add three new explain functions to properly format:
- AlterQuery with all ALTER command types (ADD/DROP/MODIFY COLUMN,
  RENAME COLUMN, indexes, constraints, TTL, settings, partitions, etc.)
- OptimizeQuery with FINAL suffix handling
- TruncateQuery with database.table format

This enables 182+ previously failing explain tests to pass by properly
outputting the AST format expected by ClickHouse's EXPLAIN AST.
Remove explain_todo entries for tests that now pass after adding
EXPLAIN AST support for ALTER, OPTIMIZE, and TRUNCATE queries.
@kyleconroy kyleconroy merged commit fc6b69c into main Dec 28, 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