snowflake.snowpark.functions.split_part¶
- snowflake.snowpark.functions.split_part(string: Union[snowflake.snowpark.column.Column, str], delimiter: Union[snowflake.snowpark.column.Column, str], part_number: Union[snowflake.snowpark.column.Column, str]) Column[source]¶
Splits a given string at a specified character and returns the requested part.
- Parameters:
string (ColumnOrName) – The string to be split.
delimiter (ColumnOrName) – The delimiter to split the string on.
part_number (ColumnOrName) – The part number to return (1-based indexing). Negative numbers count from the end.
- Returns:
The specified part of the split string.
- Return type:
- Examples::