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]¶
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: