Skip to content

Conversation

@kyleconroy
Copy link
Collaborator

ClickHouse allows identifiers like '1alias1name1' as aliases after AS.
The lexer now recognizes these as identifiers rather than treating the
leading digits as a NUMBER token followed by an IDENT token.

The change adds a check in readNumberOrIdent to detect when digits are
directly followed by letters (excluding exponent notation like 1e5 and
base prefixes like 0x, 0b, 0o).

ClickHouse allows identifiers like '1alias1name1' as aliases after AS.
The lexer now recognizes these as identifiers rather than treating the
leading digits as a NUMBER token followed by an IDENT token.

The change adds a check in readNumberOrIdent to detect when digits are
directly followed by letters (excluding exponent notation like 1e5 and
base prefixes like 0x, 0b, 0o).
@kyleconroy kyleconroy merged commit 078ce71 into main Dec 28, 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