From 0e55bca5ba6c161cd958d352a52179448c1d2262 Mon Sep 17 00:00:00 2001 From: Yang Cen <159225399+BubbleCal@users.noreply.github.com> Date: Wed, 21 Oct 2026 22:14:40 +0800 Subject: [PATCH] test(python): explicitly preserve null vectors in RQ coverage --- python/python/tests/test_index.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/python/tests/test_index.py b/python/python/tests/test_index.py index 37bf9a072..2f13e8229 100644 --- a/python/python/tests/test_index.py +++ b/python/python/tests/test_index.py @@ -465,8 +465,10 @@ def test_create_ivfrq_accelerator_preserves_layout(tmp_path, num_bits, layered): } ) db = connect(tmp_path) - table = db.create_table("test", data.slice(0, 128)) - table.add(data.slice(128)) + table = db.create_table("test", data.slice(0, 128), on_bad_vectors="null") + table.add(data.slice(128), on_bad_vectors="null") + assert table.count_rows() == 256 + assert table.to_arrow()["vector"].null_count == 2 table.create_index( "vector", config=IvfRq(