mirror of https://github.com/milvus-io/milvus.git
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
parent
4850641943
commit
53a8a24554
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue