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] (https://github.com/snowflakedb/snowpark-python/blob/v1.45.0/src/snowflake/snowpark/_functions/scalar_functions.py#L5192-L5232)¶
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::