-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Store arrays offsets for numeric fields natively with synthetic source #124594
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 41 commits into
elastic:main
from
jordan-powers:array-offset-encoding-numbers
Mar 20, 2025
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
6213d87
WIP numeric fields native synthetic array support
jordan-powers 7fe15da
Disable native synthetic source support within nested contexts
jordan-powers 3d79319
Fix hasValue logic for case of empty array
jordan-powers e3961ec
Fix missing field name for all-null arrays
jordan-powers 484dabb
Add LongOffsetDocValuesLoaderTests.java
jordan-powers f0d6914
Always store array offsets
jordan-powers 188a478
Use abstract getRandomValue for testSynthesizeArrayRandom
jordan-powers 1ea276b
Use correct fieldType in verifySyntheticArrayInObject
jordan-powers 0656ba6
Avoid string-encoding expected values
jordan-powers b790084
Don't assume response will be array in NativeArrayIntegrationTestCase
jordan-powers 2533b0b
Add LongSyntheticSourceNativeArrayIntegrationTests
jordan-powers 578fc42
Fix x-pack build issues
jordan-powers 7bfd82b
Merge remote-tracking branch 'upstream/main' into array-offset-encodi…
jordan-powers 3d7347c
Update docs/changelog/124594.yaml
jordan-powers 6ab26af
Revert "Always store array offsets"
jordan-powers c514dc4
Remove NumberType#sortableLongValue
jordan-powers e19c6e5
Revert "Don't assume response will be array in NativeArrayIntegration…
jordan-powers 52e2aba
Merge remote-tracking branch 'origin/array-offset-encoding-numbers' i…
jordan-powers 86d6c6b
Add testSynthesizeArrayRandomIgnoresMalformed
jordan-powers ed90189
Convert FieldLoader to FieldLoaderLayer
jordan-powers e08929f
Mask offsets field in roundtrip tests
jordan-powers 5ce5bcc
Fix testSyntheticSourceKeepArrays expecting precision to be preserved
jordan-powers 0743b31
Merge remote-tracking branch 'upstream/main' into array-offset-encodi…
jordan-powers 1bd67e0
Fix UnsignedLongFieldMapperTests
jordan-powers f6793c1
Merge remote-tracking branch 'upstream/main' into array-offset-encodi…
jordan-powers f27a52e
Account for duplicate doc values in loader layer
jordan-powers d4185eb
Fix value cast in Byte number type
jordan-powers 82031c1
Remove unused leafName from field loader layer
jordan-powers cd56130
Merge remote-tracking branch 'upstream/main' into array-offset-encodi…
jordan-powers 4d2b559
Allow multiple documents in testSynthesizeArrayRandomIgnoresMalformed
jordan-powers 316b94c
Add test verifying offset encoding is disabled in nested contexts
jordan-powers 65c1bc4
Add test with duplicate values to LongOffsetDocValuesLoaderTests
jordan-powers a4cebf6
Fix deduplication logic in doc values loader
jordan-powers 1cfa022
Add duplicate values to testOffsetArrayRandom
jordan-powers 321f652
Add doc values loader tests for other numeric types
jordan-powers 1b3472b
Merge remote-tracking branch 'upstream/main' into array-offset-encodi…
jordan-powers 96534a0
Add native array integration tests for other numeric types
jordan-powers 61831f1
Merge remote-tracking branch 'upstream/main' into array-offset-encodi…
jordan-powers 4efc7fe
Remove 'Object' from type parameter
jordan-powers 9ca9c7c
Fix native array integration tests
jordan-powers 47f3bbc
Merge remote-tracking branch 'upstream/main' into array-offset-encodi…
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| pr: 124594 | ||
| summary: Store arrays offsets for numeric fields natively with synthetic source | ||
| area: Mapping | ||
| type: enhancement | ||
| issues: [] |
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
Oops, something went wrong.
Oops, something went wrong.
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.
This makes sense. Can you add a test to
NativeArrayIntegrationTestCase, which checks that if leaf array field has nested parent field, then we always fall back to ignored source?