TRANSLATE (Lakehouse v2)
根据字符映射替换字符串中的字符。
Analyze 语法
Section titled “Analyze 语法”func.translate(<str>, <from>, <to>)Analyze 示例
Section titled “Analyze 示例”func.translate('hello', 'el', 'ip')
┌─────────┐│ 'hippo' │└─────────┘SQL 语法
Section titled “SQL 语法”TRANSLATE(<str>, <from>, <to>)SQL 示例
Section titled “SQL 示例”SELECT TRANSLATE('hello', 'el', 'ip');
┌───────┐│ hippo │└───────┘