Skip to content

Commit

Permalink
fix: fix empty indices of sparse float (milvus-io#35403)
Browse files Browse the repository at this point in the history
milvus-io#35401

Signed-off-by: sunby <sunbingyi1992@gmail.com>
  • Loading branch information
sunby authored and chyezh committed Sep 11, 2024
1 parent a14048c commit 7efa2f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/core/src/mmap/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ WriteFieldData(File& file,
}
case DataType::VECTOR_SPARSE_FLOAT: {
for (size_t i = 0; i < data->get_num_rows(); ++i) {
indices.push_back(total_written);
auto vec =
static_cast<const knowhere::sparse::SparseRow<float>*>(
data->RawValue(i));
Expand Down

0 comments on commit 7efa2f7

Please sign in to comment.