milvus/tests/python_client/testcases/indexes
yanliang567 9ef7e25778
test: enable search by ids on null vectors tests for #47065 (#47559)
## Summary
- Enable search by ids tests that were commented out pending fix of
#47065
- Fix syntax error in test: `for i in len()` → `for i in range(len())`
- Update test expectations to match the fixed behavior:
  - Search on null vectors now returns empty results instead of error
- Fix assertion to use correct `num_entities_with_not_null_vector` count

## Test plan
- [x] `test_milvus_client_add_nullable_vector_field_search` - verified
passing
- [x] `test_milvus_client_collection_null_vector_field_search` -
verified passing

issue: #47065

🤖 Generated with [Claude Code](https://claude.ai/code)

---------

Signed-off-by: Yan Liang <yanliang@zilliz.com>
Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 14:17:49 +08:00
..
idx_diskann.py
idx_hnsw.py
idx_hnsw_pq.py enhance: update knowhere version (#45564) 2026-01-07 10:39:24 +08:00
idx_hnsw_prq.py
idx_hnsw_sq.py enhance: update knowhere version (#45564) 2026-01-07 10:39:24 +08:00
idx_ivf_rabitq.py
idx_ngram.py
test_diskann.py test: enable search by ids on null vectors tests for #47065 (#47559) 2026-02-05 14:17:49 +08:00
test_hnsw.py test: enable search by ids on null vectors tests for #47065 (#47559) 2026-02-05 14:17:49 +08:00
test_hnsw_pq.py
test_hnsw_prq.py test: Skip HNSW_PRQ test cases (#46771) 2026-01-05 18:55:24 +08:00
test_hnsw_sq.py
test_ivf_rabitq.py test: enable search by ids on null vectors tests for #47065 (#47559) 2026-02-05 14:17:49 +08:00
test_ngram.py test: enable search by ids on null vectors tests for #47065 (#47559) 2026-02-05 14:17:49 +08:00