snowflake.snowpark.functions.charindex¶
- snowflake.snowpark.functions.charindex(target_expr: Union[Column, str], source_expr: Union[Column, str], position: Optional[Union[Column, int]] = None) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.47.0/src/snowflake/snowpark/functions.py#L3613-L3672)¶
Searches for
target_exprinsource_exprand, if successful, returns the position (1-based) of thetarget_exprinsource_expr.- Parameters:
target_expr – A string or binary expression representing the value to look for.
source_expr – A string or binary expression representing the value to search.
position – A number indication the position (1-based) from where to start the search. Defaults to None.
- Examples::