Skip to content

Fix native array integration tests#139577

Merged
jordan-powers merged 6 commits intoelastic:mainfrom
jordan-powers:fix-native-array-integration-tests
Dec 18, 2025
Merged

Fix native array integration tests#139577
jordan-powers merged 6 commits intoelastic:mainfrom
jordan-powers:fix-native-array-integration-tests

Conversation

@jordan-powers
Copy link
Contributor

@jordan-powers jordan-powers commented Dec 16, 2025

In #139093 we updated the NativeArrayIntegrationTestCase to extract the single value out of arrays of length 1.
This prevents the creation of the .offsets field (as it's not need for single-valued fields), which then fails the later assertion in the test which checks for the presence of this .offsets field.

This PR fixes the test failures by reverting the logic to collapse the arrays, instead maintaining single-valued arrays as-is.

Fixes #139376.
Fixes #139562.
Fixes #139658.

@jordan-powers jordan-powers self-assigned this Dec 16, 2025
@jordan-powers jordan-powers added >test Issues or PRs that are addressing/adding tests :StorageEngine/Mapping The storage related side of mappings labels Dec 16, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@jordan-powers jordan-powers enabled auto-merge (squash) December 18, 2025 04:18
@jordan-powers jordan-powers merged commit 5f24987 into elastic:main Dec 18, 2025
35 checks passed
@jordan-powers jordan-powers deleted the fix-native-array-integration-tests branch January 15, 2026 16:10
@jordan-powers
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
9.3

Questions ?

Please refer to the Backport tool documentation

jordan-powers added a commit to jordan-powers/elasticsearch that referenced this pull request Jan 29, 2026
In elastic#139093 we updated the NativeArrayIntegrationTestCase to extract the
single value out of arrays of length 1. This prevents the creation of the
.offsets field (as it's not need for single-valued fields), which then
fails the later assertion in the test which checks for the presence of
this .offsets field.

This PR fixes the test failures by reverting the logic to collapse the
arrays, instead maintaining single-valued arrays as-is.

(cherry picked from commit 5f24987)

# Conflicts:
#	muted-tests.yml
jordan-powers added a commit that referenced this pull request Jan 30, 2026
In #139093 we updated the NativeArrayIntegrationTestCase to extract the
single value out of arrays of length 1. This prevents the creation of the
.offsets field (as it's not need for single-valued fields), which then
fails the later assertion in the test which checks for the presence of
this .offsets field.

This PR fixes the test failures by reverting the logic to collapse the
arrays, instead maintaining single-valued arrays as-is.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:StorageEngine/Mapping The storage related side of mappings Team:StorageEngine >test Issues or PRs that are addressing/adding tests v9.3.1 v9.4.0

Projects

None yet

3 participants