-
Notifications
You must be signed in to change notification settings - Fork 753
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
feat(functions): add jaro_winkler string similarity function #16993
base: main
Are you sure you want to change the base?
Conversation
@@ -841,6 +854,190 @@ pub(crate) mod soundex { | |||
} | |||
} | |||
|
|||
// this implementation comes from https://github.com/joshuaclayton/jaro_winkler | |||
pub(crate) mod jaro_winkler { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function jaro_winkler and mod jaro_winkler can refactor to file other.rs.
|
||
#[test] | ||
fn different_is_zero() { | ||
assert_eq!(jaro_winkler("foo", "bar"), 0.0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0655e48
to
341939a
Compare
ok @TCeason - I've moved the definition to other.rs |
Please fmt code |
341939a
to
a97f916
Compare
ok done @TCeason ! |
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
Adds a jaro_winkler string edit distance function taken from this project https://github.com/joshuaclayton/jaro_winkler
Tests
Type of change
This change is