snowflake.snowpark.functions.strtok¶
- snowflake.snowpark.functions.strtok(string: Union[snowflake.snowpark.column.Column, str], delimiter: Union[snowflake.snowpark.column.Column, str] = None, part_nr: Union[snowflake.snowpark.column.Column, str] = None) Column[source]¶
Tokenizes a string with the given set of delimiters and returns the requested part.
- Parameters:
string (ColumnOrName) – The string to be tokenized.
delimiter (ColumnOrName, optional) – A set of delimiters. Each character in the delimiter string is treated as a delimiter. If not specified, defaults to a single space character.
part_nr (ColumnOrName, optional) – The requested part number (1-based). If not specified, returns the entire string.
- Returns:
The requested part of the tokenized string.
- Return type:
- Examples::