-
Notifications
You must be signed in to change notification settings - Fork 25.7k
ESQL - Allow null values in vector similarity functions #132919
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
ESQL - Allow null values in vector similarity functions #132919
Conversation
…larity-null-management' into non-issue/esql-vector-similarity-null-management
| // end::vector-dot-product-result[] | ||
| ; | ||
|
|
||
| similarityAsPartOfExpression |
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.
Unrelated changes - indenting was wrong so I fixed it on all test files
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
|
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
|
Pinging @elastic/search-eng (Team:SearchOrg) |
|
Pinging @elastic/search-relevance (Team:Search - Relevance) |
…-similarity-null-management # Conflicts: # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java
ChrisHegarty
left a comment
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.
LGTM
kderusso
left a comment
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.
LGTM
* Allow null values and return null as result * Fix indentation * [CI] Auto commit changes from spotless * Remove unnecessary return * Fix verifier tests * Fix bwc tests introducing capability --------- Co-authored-by: elasticsearchmachine <[email protected]>
Vector similarity functions did not allow null as a parameter, and returned 0.0 when comparing null vectors. This PR fixes that: