Skip to content

Fix multiple EXPLAIN output formatting issues#96

Merged
kyleconroy merged 1 commit into
mainfrom
claude/fix-more-tests-w5Nqr
Dec 30, 2025
Merged

Fix multiple EXPLAIN output formatting issues#96
kyleconroy merged 1 commit into
mainfrom
claude/fix-more-tests-w5Nqr

Conversation

@kyleconroy
Copy link
Copy Markdown
Collaborator

This commit fixes several EXPLAIN AST output issues:

  1. SampleRatio formatting: Convert decimal ratios like 0.1 to fractions
    like 1/10 to match ClickHouse EXPLAIN AST output

  2. CHECK TABLE FORMAT clause: Add support for parsing and outputting the
    FORMAT clause in CHECK TABLE statements

  3. Materialized view ViewTargets: For CREATE MATERIALIZED VIEW statements,
    output the AS SELECT clause before the storage definition and wrap
    storage definition in ViewTargets

  4. OPTIMIZE TABLE PARTITION: Add support for outputting the PARTITION
    clause in OPTIMIZE TABLE statements

These fixes resolve 44 test statements across many test files.

This commit fixes several EXPLAIN AST output issues:

1. SampleRatio formatting: Convert decimal ratios like 0.1 to fractions
   like 1/10 to match ClickHouse EXPLAIN AST output

2. CHECK TABLE FORMAT clause: Add support for parsing and outputting the
   FORMAT clause in CHECK TABLE statements

3. Materialized view ViewTargets: For CREATE MATERIALIZED VIEW statements,
   output the AS SELECT clause before the storage definition and wrap
   storage definition in ViewTargets

4. OPTIMIZE TABLE PARTITION: Add support for outputting the PARTITION
   clause in OPTIMIZE TABLE statements

These fixes resolve 44 test statements across many test files.
@kyleconroy kyleconroy merged commit 6615b9c 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