Files
scylladb/test/vector_search
Szymon Malewski 2151a4fac3 test/vector_search: migrate zero-vector query rescoring test to pytest; delete rescoring_test.cc
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.
2026-05-26 00:37:54 +02:00
..
2026-04-12 19:46:33 +03:00
2026-04-12 19:46:33 +03:00
2026-04-12 19:46:33 +03:00