v.18.16Improvement
Added Synonyms and Enhanced Syntax for SQL Functions in ClickHouse
Added synonyms for thePOWER,LN,LCASE,UCASE,REPLACE,LOCATE,SUBSTR, andMIDfunctions. #3774 #3763 Some function names are case-insensitive for compatibility with the SQL standard. Added syntactic sugarSUBSTRING(expr FROM start FOR length)for compatibility with SQL. #3804
Why it matters
This feature improves compatibility with the SQL standard by allowing users to use common synonyms and case-insensitive function names. It simplifies queries and reduces friction when migrating SQL code to ClickHouse by supporting familiar function names and syntax forms.How to use it
Users can now invoke functions using their new synonyms and in any case without affecting execution. Additionally, the syntaxSUBSTRING(expr FROM start FOR length) can be used as an alternative to SUBSTR/MID for substring extraction, enhancing readability and compatibility.