TRIM_LEADING (Lakehouse v1)
Removes all occurrences of the specified trim string from the beginning of the string.
See also:
Analyze Syntax
Section titled “Analyze Syntax”func.trim_leading(<string>, <trim_string>)Analyze Examples
Section titled “Analyze Examples”func.trim_leading('xxdatabendxx', 'x')┌──────────────────────────────────────────┐│ func.trim_leading('xxdatabendxx', 'x') │├──────────────────────────────────────────┤│ databendxx │└──────────────────────────────────────────┘SQL Syntax
Section titled “SQL Syntax”TRIM_LEADING(<string>, <trim_string>)SQL Examples
Section titled “SQL Examples”SELECT TRIM_LEADING('xxdatabend', 'xxx'), TRIM_LEADING('xxdatabend', 'xx'), TRIM_LEADING('xxdatabend', 'x');
┌────────────────────────────────────────────────────────────────────────────────────────────────────────┐│ trim_leading('xxdatabend', 'xxx') │ trim_leading('xxdatabend', 'xx') │ trim_leading('xxdatabend', 'x') │├───────────────────────────────────┼──────────────────────────────────┼─────────────────────────────────┤│ xxdatabend │ databend │ databend │└────────────────────────────────────────────────────────────────────────────────────────────────────────┘