LEFT (Lakehouse v2)
Returns the leftmost N characters of a string.
Analyze Syntax
Section titled “Analyze Syntax”func.left(<str>, <len>)Analyze Examples
Section titled “Analyze Examples”func.left('StarRocks', 4)
┌────────┐│ 'Star' │└────────┘SQL Syntax
Section titled “SQL Syntax”LEFT(<str>, <len>)SQL Examples
Section titled “SQL Examples”SELECT LEFT('StarRocks', 4);
┌──────┐│ Star │└──────┘