jaro_similarity
The Jaro similarity between two strings. Characters of different cases (e.g., a and A) are considered different. Returns a number between 0 and 1. For similarity < score_cutoff, 0 is returned instead. score_cutoff defaults to 0.
Try an expression
In Formula, enter the expression and set Output type to DOUBLE.
Expression
jaro_similarity('duck', 'duckdb')Result
0.8888888888888888To use your own data, replace the example values with column names. Keep format strings and other options as written.
Arguments and types
jaro_similarity(s1, s2, score_cutoff)- s1
- Text
- s2
- Text
- score_cutoff
- Number
Supported signatures (2)
jaro_similarity(s1: VARCHAR, s2: VARCHAR) → DOUBLE
jaro_similarity(s1: VARCHAR, s2: VARCHAR, score_cutoff: DOUBLE) → DOUBLEThe result type can depend on the input types. See DuckDB for the full argument rules.
Things to know
If the first argument is missing, the result is NULL.
Function metadata from DuckDB, used under the MIT license.