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