forked from duckdb/duckdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose threshold argument of Jaro-Winkler similarity (duckdb#12079)
Following up on duckdb#10345, but starting with Jaro-Winkler similarity. This PR adds an optional third argument to the Jaro and Jaro-Winkler functions that acts as a "threshold" -- similarities below the threshold are reported as zero. This was already implemented in the vendored implementation of Jaro-Winkler, just not exposed to the DuckDB user. If this is received positively, I'd like to update the vendored RapidFuzz and use it for all string comparisons, which would allow exposing this argument for those as well. **NOTE: I am not great at C++. I expect this will need a lot of cleanup.**
- Loading branch information
Showing
5 changed files
with
94 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters