Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose threshold argument of Jaro-Winkler similarity #12079

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zmbc
Copy link
Contributor

@zmbc zmbc commented May 15, 2024

Following up on #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant