From 53a8a24554b97b460271f5b7bdce1aa054d9fae5 Mon Sep 17 00:00:00 2001 From: Bingyi Sun Date: Tue, 10 Sep 2024 14:23:07 +0800 Subject: [PATCH] fix: fix empty indices of sparse float (#35403) https://github.com/milvus-io/milvus/issues/35401 Signed-off-by: sunby --- internal/core/src/mmap/Utils.h | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/core/src/mmap/Utils.h b/internal/core/src/mmap/Utils.h index 2824a690d0..cf6dfd0c71 100644 --- a/internal/core/src/mmap/Utils.h +++ b/internal/core/src/mmap/Utils.h @@ -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*>( data->RawValue(i));