zvec/tests/db
feihongxu0824 a9008b0fd2
fix: nullable scalar field filter leaks null documents without inverted index (#410)
When a nullable scalar field has no inverted index, the forward filter path
fails to handle null values from Arrow's filter evaluation:

1. get_forward_bit(): BooleanArray::operator[] returns nullopt for null entries,
   which is_filtered() treats as "no filter" (not filtered), letting null docs
   through. Fix: use value_or(false) to treat null as "not matched".

2. is_matched_by_forward_filter(): reads BooleanScalar.value without checking
   is_valid, which is UB for null scalars. Fix: check is_valid first.

Closes #409

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-18 20:25:06 +08:00
..
common fix(build): replace CMAKE_SOURCE_DIR with PROJECT_ROOT_DIR for subproject builds (#195) 2026-03-04 20:01:52 +08:00
crash_recovery feat(test): enable parallel tests (#384) 2026-05-12 23:14:17 +08:00
index refactor: support UTF-8 file paths via std::filesystem (#359) 2026-05-08 17:44:22 +08:00
sqlengine feat(ci): integrate clang-tidy for changed C/C++ files (#116) 2026-04-20 20:14:21 +08:00
CMakeLists.txt feat: add hnsw-rabitq support (#69) 2026-03-19 17:21:42 +08:00
collection_test.cc fix: nullable scalar field filter leaks null documents without inverted index (#410) 2026-05-18 20:25:06 +08:00
utf8_collection_test.cc refactor: support UTF-8 file paths via std::filesystem (#359) 2026-05-08 17:44:22 +08:00