REPLACE (Lakehouse v2)
Replaces all occurrences of a substring with another substring.
Analyze Syntax
Section titled “Analyze Syntax”func.replace(<str>, <old>, <new>)Analyze Examples
Section titled “Analyze Examples”func.replace('hello world', 'world', 'there')
┌───────────────┐│ 'hello there' │└───────────────┘SQL Syntax
Section titled “SQL Syntax”REPLACE(<str>, <old>, <new>)SQL Examples
Section titled “SQL Examples”SELECT REPLACE('hello world', 'world', 'there');
┌─────────────┐│ hello there │└─────────────┘