Skip to content

Conversation

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

3 participants