Skip to content

Conversation

@kyleconroy
Copy link
Collaborator

ClickHouse doesn't recognize the Unicode minus sign (−, U+2212) as a
mathematical operator. Instead of parsing it as a minus, treat everything
from the Unicode minus to the end of line or semicolon as a comment.

This matches ClickHouse's behavior where SELECT 1 − 2 produces just
Literal UInt64_1 in the EXPLAIN AST output.

ClickHouse doesn't recognize the Unicode minus sign (−, U+2212) as a
mathematical operator. Instead of parsing it as a minus, treat everything
from the Unicode minus to the end of line or semicolon as a comment.

This matches ClickHouse's behavior where SELECT 1 − 2 produces just
Literal UInt64_1 in the EXPLAIN AST output.
@kyleconroy kyleconroy merged commit c32dede into main Dec 25, 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