Skip to content

Conversation

@kyleconroy
Copy link
Collaborator

  • Add QuotedAlias field to CaseExpr to track double-quoted aliases
  • Add Quoted field to lexer Item to identify quoted identifiers
  • Only output CASE/multiIf aliases when they were unquoted in the source
  • This matches ClickHouse's EXPLAIN AST behavior where quoted aliases
    like AS "NAME" are not shown, but unquoted aliases like AS name are
  • Enable 00551_parse_or_null and 02910_nullable_enum_cast tests which
    now pass with the improved alias handling

- Add QuotedAlias field to CaseExpr to track double-quoted aliases
- Add Quoted field to lexer Item to identify quoted identifiers
- Only output CASE/multiIf aliases when they were unquoted in the source
- This matches ClickHouse's EXPLAIN AST behavior where quoted aliases
  like AS "NAME" are not shown, but unquoted aliases like AS name are
- Enable 00551_parse_or_null and 02910_nullable_enum_cast tests which
  now pass with the improved alias handling
@kyleconroy kyleconroy merged commit e2d74d1 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