Skip to content

Commit

Permalink
fix: [2.5] Only generate the index_null_offset file when the field su…
Browse files Browse the repository at this point in the history
…pport null value (#38834)

issue: #38832 

master pr: #38833

Signed-off-by: cai.zhang <[email protected]>
  • Loading branch information
xiaocai2333 authored Dec 30, 2024
1 parent e6c3d40 commit 015e50e
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 015e50e

Please sign in to comment.