Skip to content

Fix 4 parser tests with EXPLAIN AST improvements#48

Merged
kyleconroy merged 3 commits intomainfrom
claude/fix-failing-tests-qk1qI
Dec 26, 2025
Merged

Fix 4 parser tests with EXPLAIN AST improvements#48
kyleconroy merged 3 commits intomainfrom
claude/fix-failing-tests-qk1qI

Conversation

@kyleconroy
Copy link
Copy Markdown
Collaborator

  • Fix EXTRACT function mapping to use ClickHouse's exact function names
    (e.g., toDayOfMonth instead of toDay for EXTRACT(DAY FROM ...))
  • Fix UseQuery explain format to output UseQuery with children count
    and Identifier child
  • Add ExistsTableQuery explain handler for EXISTS TABLE/DATABASE/DICTIONARY
  • Fix ShowTables FROM database to include database identifier as child

Tests enabled:

  • 00619_extract
  • 00950_dict_get
  • 01048_exists_query
  • 01161_information_schema

- Fix EXTRACT function mapping to use ClickHouse's exact function names
  (e.g., toDayOfMonth instead of toDay for EXTRACT(DAY FROM ...))
- Fix UseQuery explain format to output UseQuery with children count
  and Identifier child
- Add ExistsTableQuery explain handler for EXISTS TABLE/DATABASE/DICTIONARY
- Fix ShowTables FROM database to include database identifier as child

Tests enabled:
- 00619_extract
- 00950_dict_get
- 01048_exists_query
- 01161_information_schema
Add special handling for ShowCreateDatabaseQuery in explainShowQuery
to produce the expected output format with database identifier.
OrderByElement now outputs the COLLATE clause as a child Literal
when a collation is specified.
@kyleconroy kyleconroy merged commit b44a838 into main Dec 26, 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