fix: fix empty indices of sparse float (#35403)

https://github.com/milvus-io/milvus/issues/35401

Signed-off-by: sunby <sunbingyi1992@gmail.com>
pull/36115/head^2
Bingyi Sun 2024-09-10 14:23:07 +08:00 committed by GitHub
parent 4850641943
commit 53a8a24554
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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));