You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handle escape sequences in backtick identifiers and sanitize invalid UTF-8
1. Lexer: Process escape sequences (\xFF, \0, etc.) in backtick-quoted
identifiers, matching the behavior of string literals.
2. Explain output:
- Replace invalid UTF-8 bytes with replacement character (U+FFFD)
- Display null bytes as escape sequence \0
- Escape backslashes and single quotes in identifier/alias output
3. Apply sanitization to:
- Column declarations
- Identifier names
- Function aliases
- Storage definition ORDER BY identifiers
This matches ClickHouse's EXPLAIN AST behavior for handling special
characters in identifiers.
Fixes test: 03356_tables_with_binary_identifiers_invalid_utf8/stmt2
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments