Skip to content

Add Explain function to parser package for EXPLAIN AST output#10

Merged
kyleconroy merged 1 commit intomainfrom
claude/add-parser-explain-function-01MTYE89Hr6fWgcQvQvt9Bye
Dec 13, 2025
Merged

Add Explain function to parser package for EXPLAIN AST output#10
kyleconroy merged 1 commit intomainfrom
claude/add-parser-explain-function-01MTYE89Hr6fWgcQvQvt9Bye

Conversation

@kyleconroy
Copy link
Copy Markdown
Collaborator

  • Add Explain function that takes an ast.Statement and produces EXPLAIN AST output
    matching ClickHouse's format using a string builder
  • Update parser tests to verify explain output against explain.txt files
  • Fix test to skip SQL comment lines when parsing queries
  • Remove todo:true from 10 passing test cases:
    • 00001_select_1, 00001_count_hits
    • 00002_count_visits, 00002_system_numbers
    • 00003_reinterpret_as_string
    • 00004_top_counters
    • 00005_filtering
    • 00006_agregates, 00006_extremes_and_subquery_from
    • 00007_array

- Add Explain function that takes an ast.Statement and produces EXPLAIN AST output
  matching ClickHouse's format using a string builder
- Update parser tests to verify explain output against explain.txt files
- Fix test to skip SQL comment lines when parsing queries
- Remove todo:true from 10 passing test cases:
  - 00001_select_1, 00001_count_hits
  - 00002_count_visits, 00002_system_numbers
  - 00003_reinterpret_as_string
  - 00004_top_counters
  - 00005_filtering
  - 00006_agregates, 00006_extremes_and_subquery_from
  - 00007_array
@kyleconroy kyleconroy merged commit d6aa928 into main Dec 13, 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