snowflake.snowpark.functions.position¶
- snowflake.snowpark.functions.position(expr1: Union[Column, str], expr2: Union[Column, str], start_pos: int = 1) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.45.0/src/snowflake/snowpark/functions.py#L11712-L11743)¶
Searches for the first occurrence of the first argument in the second argument and, if successful, returns the position (1-based) of the first argument in the second argument.
Example: