-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Include 8.x backport version in index version checks for offset encoding #125447
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
Merged
jordan-powers
merged 5 commits into
elastic:main
from
jordan-powers:offset-numeric-arrays-index-version-fix
Mar 25, 2025
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c78d8a5
Include 8.x backport version in index version checks for offset encoding
jordan-powers e512bdb
Merge remote-tracking branch 'upstream/main' into offset-numeric-arra…
jordan-powers 789ad92
Add 8_x index version for boolean fields
jordan-powers 1accd8a
Merge 8.x_backport index versions
jordan-powers 6886440
Merge remote-tracking branch 'upstream/main' into offset-numeric-arra…
jordan-powers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 think this version doesn't exist in the 8.x branch?
Thinking more about this, given the 8.19.0 has not been released yet. I think we reuse the
SYNTHETIC_SOURCE_STORE_ARRAYS_NATIVELY_KEYWORD_BACKPORT_8_Xindex version. Also in 8.x branch, however I see thatSYNTHETIC_SOURCE_STORE_ARRAYS_NATIVELY_NUMBERwas added. So In think here we can just useSYNTHETIC_SOURCE_STORE_ARRAYS_NATIVELY_NUMBERin places whereSYNTHETIC_SOURCE_STORE_ARRAYS_NATIVELY_BOOLEAN_BACKPORT_8_Xis used?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.
When I've been backporting the PRs adding offset encoding, I've been creating new index versions for each backport. The index version
SYNTHETIC_SOURCE_STORE_ARRAYS_NATIVELY_BOOLEAN_BACKPORT_8_X(8_529) is still pending in backport PR #125596.Instead of adding a new version, should I update #125596 to instead use
8_528for the boolean field mapper, since there hasn't been an 8.x release yet?If so, should I also use
8_528for future offset encoding backports (unsigned long and scaled float)?Then I would update this PR to use
8_528for both numeric and boolean fields.Uh oh!
There was an error while loading. Please reload this page.
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.
OK, I opened #125610 to use
8_527for all the 8.x offset encoding implementations. I also updated the version checks here to always just look at8_527. Which is what we were already doing, so this PR is essentially just renaming the constant.