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

Set default space type to L2 to support bwc #267

Merged
merged 1 commit into from
Jan 26, 2022

Conversation

jmazanec15
Copy link
Member

Description

This change adds L2 space type fall back during query. This prevents backwards compatibility issues for clusters upgrading from ES 7.1 and 7.4. In those versions, space type was not introduced as a field attribute yet.

Issues Resolved

#255

Check List

  • Commits are signed as per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@jmazanec15 jmazanec15 requested a review from a team January 24, 2022 22:04
This change adds L2 space type fall back during query.
This prevents backwards compatibility issues for clusters
upgrading from ES 7.1 and 7.4. In those versions, space
type was not introduced as a field attribute yet.

Signed-off-by: John Mazanec <[email protected]>
@jmazanec15 jmazanec15 requested a review from VijayanB January 24, 2022 22:15
@codecov-commenter
Copy link

Codecov Report

Merging #267 (9884724) into main (b01b79b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 9884724 differs from pull request most recent head d6268dc. Consider uploading reports for the commit d6268dc to get more accurate results
Impacted file tree graph

@@            Coverage Diff            @@
##               main     #267   +/-   ##
=========================================
  Coverage     83.37%   83.38%           
  Complexity      884      884           
=========================================
  Files           127      127           
  Lines          3832     3833    +1     
  Branches        361      361           
=========================================
+ Hits           3195     3196    +1     
  Misses          475      475           
  Partials        162      162           
Impacted Files Coverage Δ
.../main/java/org/opensearch/knn/index/KNNWeight.java 76.92% <100.00%> (+0.29%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b01b79b...d6268dc. Read the comment docs.

@martin-gaievski martin-gaievski self-requested a review January 24, 2022 22:28
Copy link
Member

@martin-gaievski martin-gaievski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@jmazanec15 jmazanec15 merged commit 34e02cb into opensearch-project:main Jan 26, 2022
martin-gaievski pushed a commit to martin-gaievski/k-NN that referenced this pull request Mar 7, 2022
This change adds L2 space type fall back during query.
This prevents backwards compatibility issues for clusters
upgrading from ES 7.1 and 7.4. In those versions, space
type was not introduced as a field attribute yet.

Signed-off-by: John Mazanec <[email protected]>
martin-gaievski pushed a commit to martin-gaievski/k-NN that referenced this pull request Mar 7, 2022
This change adds L2 space type fall back during query.
This prevents backwards compatibility issues for clusters
upgrading from ES 7.1 and 7.4. In those versions, space
type was not introduced as a field attribute yet.

Signed-off-by: John Mazanec <[email protected]>
Signed-off-by: Martin Gaievski <[email protected]>
martin-gaievski pushed a commit to martin-gaievski/k-NN that referenced this pull request Mar 30, 2022
This change adds L2 space type fall back during query.
This prevents backwards compatibility issues for clusters
upgrading from ES 7.1 and 7.4. In those versions, space
type was not introduced as a field attribute yet.

Signed-off-by: John Mazanec <[email protected]>
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.

5 participants