Skip to content

test: migrate KNNVectorFieldMapperUtilTests and KNNVectorFieldTypeTests from k-nn#407

Closed
kush992 wants to merge 1 commit intoopensearch-project:mainfrom
kush992:mapper-tests-kb
Closed

test: migrate KNNVectorFieldMapperUtilTests and KNNVectorFieldTypeTests from k-nn#407
kush992 wants to merge 1 commit intoopensearch-project:mainfrom
kush992:mapper-tests-kb

Conversation

@kush992
Copy link
Copy Markdown
Contributor

@kush992 kush992 commented Apr 16, 2026

Description

[Describe what this change achieves]
Migrated below tests from opensearch-project/k-nn repo.

  • KNNVectorFieldMapperUtilTests.java - Removes Array based vector serialization k-NN#2587 (this version was picked up to comply with the implementation of KNNVectorFieldMapperUtil.java in this repo.
  • KNNVectorFieldTypeTests.java - referenced the current tests in opensearch-project/k-nn to adjust tests in this repo

Related Issues

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

#393

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.

…ts from k-nn

Signed-off-by: Kush Bhalodi <kush.bhalodi@ibm.com>
@reta
Copy link
Copy Markdown
Collaborator

reta commented Apr 16, 2026

Thanks @kush992 , could you please run:

  • ./gradlew spotlessApply to fix formatting
  • git commit --amend --signoff to fix DCO check after?

@kush992 kush992 closed this Apr 16, 2026
@kush992 kush992 deleted the mapper-tests-kb branch April 16, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants