REPLACE (Lakehouse v2)
将子字符串的所有匹配项替换为另一个子字符串。
Analyze 语法
Section titled “Analyze 语法”func.replace(<str>, <old>, <new>)Analyze 示例
Section titled “Analyze 示例”func.replace('hello world', 'world', 'there')
┌───────────────┐│ 'hello there' │└───────────────┘SQL 语法
Section titled “SQL 语法”REPLACE(<str>, <old>, <new>)SQL 示例
Section titled “SQL 示例”SELECT REPLACE('hello world', 'world', 'there');
┌─────────────┐│ hello there │└─────────────┘