Add IT and BWC tests with Indices containing both Vector and Non Vector documents #2284
Labels
Infrastructure
Changes to infrastructure, testing, CI/CD, pipelines, etc.
Maintenance
Add support for new versions of OpenSearch/Dashboards from upstream
Description
Currently in k-NN plugin all the ITs and BWC created has indices with vector fields and all the documents contain vector field. But in production indices it is not necessary that a k-NN index documents will always have the vector field in it or to say all the vector fields in it. Due to these kind of tests being missing we are not able to catch issues which are fixed in these PRs:
Proposal
To catch the above issues during PRs we should add tests(BWC and ITs) for all 3 engines and disk based vector search. For 1, I added the integration tests with the fix
k-NN/src/test/java/org/opensearch/knn/integ/ModeAndCompressionIT.java
Line 225 in 2d1a408
Tests to be added
Please suggest more tests if there are any.
The text was updated successfully, but these errors were encountered: