Skip to content

[Bug fix] Fix Lucene SQ Encoder behavior to not resolve encoder bits if user does not provide them with the encoder#3219

Merged
shatejas merged 3 commits intoopensearch-project:mainfrom
jack-hung-lgtm:lucene-sq-it
Mar 31, 2026
Merged

[Bug fix] Fix Lucene SQ Encoder behavior to not resolve encoder bits if user does not provide them with the encoder#3219
shatejas merged 3 commits intoopensearch-project:mainfrom
jack-hung-lgtm:lucene-sq-it

Conversation

@jack-hung-lgtm
Copy link
Copy Markdown
Contributor

Description

Added some more ITs to verify Lucene SQ Encoder Mapping Validation Behavior. Also makes sure that Lucene SQ encoder now throws validation errors if user provides encoders without bits specified in indices created after version 3.6

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.03%. Comparing base (77ac70e) to head (07fe757).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #3219      +/-   ##
============================================
+ Coverage     83.01%   83.03%   +0.01%     
- Complexity     4160     4163       +3     
============================================
  Files           447      447              
  Lines         15313    15317       +4     
  Branches       1964     1965       +1     
============================================
+ Hits          12712    12718       +6     
+ Misses         1808     1806       -2     
  Partials        793      793              

☔ 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.

…to not resolve bits when user provides encoder in newest version

Signed-off-by: Jack Hung <jjhung66@alumni.stanford.edu>
@jack-hung-lgtm jack-hung-lgtm changed the title Lucene SQ Mapping ITs and some updaated Lucene SQ encoder behavior [Bug fix] Fix Lucene SQ Encoder behavior to not resolve encoder bits if user does not provide them with the encoder Mar 27, 2026
Copy link
Copy Markdown
Collaborator

@Vikasht34 Vikasht34 left a comment

Choose a reason for hiding this comment

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

Thanks for Fixing this , Looks good to me !!

@shatejas shatejas merged commit 167cc88 into opensearch-project:main Mar 31, 2026
48 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 31, 2026
…to not resolve bits when user provides encoder in newest version (#3219)

Signed-off-by: Jack Hung <jjhung66@alumni.stanford.edu>
Co-authored-by: Navneet Verma <navneev@amazon.com>
Co-authored-by: Naveen Tatikonda <navtat@amazon.com>
(cherry picked from commit 167cc88)
navneet1v added a commit that referenced this pull request Apr 1, 2026
…to not resolve bits when user provides encoder in newest version (#3219) (#3238)

(cherry picked from commit 167cc88)

Signed-off-by: Jack Hung <jjhung66@alumni.stanford.edu>
Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
Co-authored-by: jack-hung-lgtm <jjhung66@alumni.stanford.edu>
Co-authored-by: Navneet Verma <navneev@amazon.com>
Co-authored-by: Naveen Tatikonda <navtat@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants