Skip to content

Commit

Permalink
fix: Only generate the index_null_offset file when the field support …
Browse files Browse the repository at this point in the history
…null value (#38833)

issue: #38832

Signed-off-by: cai.zhang <[email protected]>
  • Loading branch information
xiaocai2333 authored Dec 30, 2024
1 parent 07c1f43 commit ba3c2e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/core/src/index/InvertedIndexTantivy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ InvertedIndexTantivy<T>::Serialize(const Config& config) {
new uint8_t[index_valid_data_length]);
memcpy(index_valid_data.get(), null_offset.data(), index_valid_data_length);
BinarySet res_set;
res_set.Append(
"index_null_offset", index_valid_data, index_valid_data_length);
if (index_valid_data_length > 0) {
res_set.Append(
"index_null_offset", index_valid_data, index_valid_data_length);
}
milvus::Disassemble(res_set);
return res_set;
}
Expand Down

0 comments on commit ba3c2e6

Please sign in to comment.