SUBSTR (Lakehouse v2)
Returns a substring starting from a specified position with an optional length.
Analyze Syntax
Section titled “Analyze Syntax”func.substr(<str>, <pos>[, <len>])Analyze Examples
Section titled “Analyze Examples”func.substr('StarRocks', 5, 5)
┌─────────┐│ 'Rocks' │└─────────┘SQL Syntax
Section titled “SQL Syntax”SUBSTR(<str>, <pos>[, <len>])SQL Examples
Section titled “SQL Examples”SELECT SUBSTR('StarRocks', 5, 5);
┌───────┐│ Rocks │└───────┘