SPLIT_PART (Lakehouse v2)
Splits a string by a delimiter and returns the element at a specified index.
Analyze Syntax
Section titled “Analyze Syntax”func.split_part(<str>, <delimiter>, <index>)Analyze Examples
Section titled “Analyze Examples”func.split_part('a-b-c', '-', 2)
┌─────┐│ 'b' │└─────┘SQL Syntax
Section titled “SQL Syntax”SPLIT_PART(<str>, <delimiter>, <index>)SQL Examples
Section titled “SQL Examples”SELECT SPLIT_PART('a-b-c', '-', 2);
┌───┐│ b │└───┘