Skip to content

Add missing testBulkIllegalDims for INT8 and FLOAT32#144639

Merged
ChrisHegarty merged 1 commit intoelastic:mainfrom
ChrisHegarty:fix-bulk-illegal-dims-test-coverage
Mar 20, 2026
Merged

Add missing testBulkIllegalDims for INT8 and FLOAT32#144639
ChrisHegarty merged 1 commit intoelastic:mainfrom
ChrisHegarty:fix-bulk-illegal-dims-test-coverage

Conversation

@ChrisHegarty
Copy link
Copy Markdown
Contributor

While working on bulk sparse scoring (#144557), I noticed that INT8 and FLOAT32 were missing testBulkIllegalDims coverage that INT7U, INT4, and BBQ already have. Extracting this into a small targeted PR.

Both new tests verify IOOBE for count overflow, negative count, negative dims, and undersized result buffer, matching the existing pattern in JDKVectorLibraryInt7uTests.

@ChrisHegarty ChrisHegarty requested a review from a team as a code owner March 20, 2026 11:29
@ChrisHegarty ChrisHegarty added >test Issues or PRs that are addressing/adding tests :Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch labels Mar 20, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

Copy link
Copy Markdown
Contributor

@ldematte ldematte 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 covering this!

@ChrisHegarty ChrisHegarty merged commit 8170cc1 into elastic:main Mar 20, 2026
36 checks passed
michalborek pushed a commit to michalborek/elasticsearch that referenced this pull request Mar 23, 2026
While working on bulk sparse scoring (elastic#144557), I noticed that INT8 and FLOAT32 were missing testBulkIllegalDims coverage that INT7U, INT4, and BBQ already have. Extracting this into a small targeted PR.

Both new tests verify IOOBE for count overflow, negative count, negative dims, and undersized result buffer, matching the existing pattern in JDKVectorLibraryInt7uTests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch >test Issues or PRs that are addressing/adding tests v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants