Skip to content

Set default space type to L2 to support bwc#267

Merged
jmazanec15 merged 1 commit intoopensearch-project:mainfrom
jmazanec15:fix-spacetype-check
Jan 26, 2022
Merged

Set default space type to L2 to support bwc#267
jmazanec15 merged 1 commit intoopensearch-project:mainfrom
jmazanec15:fix-spacetype-check

Conversation

@jmazanec15
Copy link
Copy Markdown
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 <jmazane@amazon.com>
Comment thread src/main/java/org/opensearch/knn/index/KNNWeight.java
@jmazanec15 jmazanec15 requested a review from VijayanB January 24, 2022 22:15
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jan 24, 2022

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.38%. Comparing base (b01b79b) to head (d6268dc).
⚠️ Report is 801 commits behind head on main.

Additional details and impacted files
@@            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           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@martin-gaievski martin-gaievski self-requested a review January 24, 2022 22:28
Copy link
Copy Markdown
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 <jmazane@amazon.com>
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 <jmazane@amazon.com>
Signed-off-by: Martin Gaievski <gaievski@amazon.com>
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 <jmazane@amazon.com>
jingqimao77-spec pushed a commit to jingqimao77-spec/k-NN that referenced this pull request Mar 15, 2026
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 <jmazane@amazon.com>
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