-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add cosine_distance for sparse vectors #24027
base: master
Are you sure you want to change the base?
Conversation
core/trino-main/src/test/java/io/trino/operator/scalar/TestMathFunctions.java
Show resolved
Hide resolved
4b126bf
to
cb8d293
Compare
assertThat(assertions.function("cosine_distance", "null", "map(ARRAY['c', 'b'], ARRAY[1.0E0, 3.0E0])")) | ||
.isNull(); | ||
|
||
//assertThat(assertions.function("cosine_distance", "map(ARRAY['a', 'b'], ARRAY[1.0E0, null])", "map(ARRAY['c', 'b'], ARRAY[1.0E0, 3.0E0])")) |
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.
This fails but have not looked into it
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 failure was an NPE due to invalid input parameters in my opinion.. so I deleted that assertion.
This pull request has gone a while without any activity. Tagging for triage help: @mosabua |
I need to look at the test that failed and chat some more with @martint afterwards. I will keep it open and update after Trino Summit. |
This pull request has gone a while without any activity. Tagging for triage help: @mosabua |
cb8d293
to
74e4109
Compare
74e4109
to
c0211d2
Compare
Description
Still have to test this locally...
Additional context and related issues
follow up to #24005
Release notes
(*) Release notes are required, with the following suggested text: