snowflake.snowpark.functions.editdistance¶
- snowflake.snowpark.functions.editdistance(e1: Union[Column, str], e2: Union[Column, str], max_distance: Optional[Union[Column, str, int]] = None) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.47.0/src/snowflake/snowpark/functions.py#L12071-L12115)¶
Computes the Levenshtein distance between two input strings.
Optionally, a maximum distance can be specified. If the distance exceeds this value, the computation halts and returns the maximum distance.
Example: