-
Notifications
You must be signed in to change notification settings - Fork 25.6k
ES|QL - vector similarity pushdown follow up #137564
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
base: main
Are you sure you want to change the base?
ES|QL - vector similarity pushdown follow up #137564
Conversation
…sure no duplicate names
| similarityFunction.dataType(), | ||
| blockLoaderFunctionConfig | ||
| ); | ||
| var name = rawTemporaryName(fieldAttr.name(), blockLoaderFunctionConfig.name()); |
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.
Rely on blockLoaderFunctionConfig.name() to get a unique name for different functions
|
@elasticsearchmachine run elasticsearch-ci/bwc-snapshots-part3 |
|
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
|
Pinging @elastic/search-relevance (Team:Search - Relevance) |
| @Override | ||
| protected Expression rule(VectorSimilarityFunction vectorSimilarityFunction, LogicalOptimizerContext ctx) { | ||
| return vectorSimilarityFunction.canonical(); | ||
| } |
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.
I had assumed there was already a rule for this!
Closes #137392
Addresses the following follow ups to #137002:
ResolveUnionTypesworkcanonicalizefor vector similarity functions, and addsCanonicalizeVectorSimilarityFunctionsrule to ensure canonicalizationBlockLoaderFunctionConfignow implementsname(), to help create a distinct name for the pushed downFieldAttribute- which is needed in order not to have duplicate field names