mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-30 11:36:54 +00:00
Migrate rescoring_with_zerovector_query from rescoring_test.cc to pytest as test_rescoring_with_zerovector_query. Tested with cosine similarity only because zero vectors produce NaN only for cosine; other functions yield valid scores. The test is marked xfail: similarity_cosine now returns NaN for zero vectors (SCYLLADB-456 fix) and rescoring should filter out NaN scores, yielding an empty result set. Semantic change: the test now asserts the desired empty-result behavior instead of asserting that the query does not throw. Delete rescoring_test.cc now that all tests have been migrated and remove its entries from configure.py and test/vector_search/CMakeLists.txt.