levenshtein
function
Applies to: Databricks SQL Databricks Runtime
Returns the Levenshtein distance between the strings str1
and str2
.
Arguments
str1
: ASTRING
expression.str2
: ASTRING
expression.maxDistance
: An optionalINTEGER
expression limiting the maximum Levenshtein distance considered. The default is unlimited.Applies to: Databricks SQL Databricks Runtime 13.3 LTS and later