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
Preserve function name case from SQL source in EXPLAIN AST output
ClickHouse EXPLAIN AST preserves the original case of function names as
written in the SQL source (e.g., CEIL stays CEIL, COALESCE stays COALESCE).
Only a few functions are normalized to specific canonical forms (e.g.,
DATEDIFF→dateDiff, POSITION→position, SUBSTRING→substring).
This fixes issues where special parser functions (parseIfFunction,
parseExtract, parseSubstring, parseArrayConstructor) were hardcoding
lowercase names instead of preserving the original case from the token.
Also fixes parseKeywordAsFunction which was incorrectly lowercasing all
keyword-based function names.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments