Skip to content

Handle Unicode minus (U+2212) as comment-like syntax#37

Merged
kyleconroy merged 1 commit intomainfrom
claude/fix-next-test-5Jn3M
Dec 25, 2025
Merged

Handle Unicode minus (U+2212) as comment-like syntax#37
kyleconroy merged 1 commit intomainfrom
claude/fix-next-test-5Jn3M

Conversation

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

2 participants