From 471ddb07b2298e422e73f0b4f5cb8cd7049deee8 Mon Sep 17 00:00:00 2001 From: yukun Date: Tue, 26 Oct 2021 19:28:52 +0800 Subject: [PATCH] Decide the final offset when repeated keys (#10671) Signed-off-by: fishpenguin --- internal/core/src/segcore/ScalarIndex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/core/src/segcore/ScalarIndex.cpp b/internal/core/src/segcore/ScalarIndex.cpp index 830dc049b8..79c221a1e1 100644 --- a/internal/core/src/segcore/ScalarIndex.cpp +++ b/internal/core/src/segcore/ScalarIndex.cpp @@ -39,7 +39,7 @@ ScalarIndexVector::do_search_ids(const IdArray& ids) const { } // TODO: for repeated key, decide the final offset with Timestamp // no repeated key, simplified logic - AssertInfo(iter_beg + 1 == iter_end, "There are no repeated keys in more than one results"); + // AssertInfo(iter_beg + 1 == iter_end, "There are no repeated keys in more than one results"); auto [entry_id, entry_offset] = *iter_beg; dst_ids->add_data(entry_id); @@ -65,7 +65,7 @@ ScalarIndexVector::do_search_ids(const std::vector& ids) const { } // TODO: for repeated key, decide the final offset with Timestamp // no repeated key, simplified logic - AssertInfo(iter_beg + 1 == iter_end, "There are no repeated keys in more than one results"); + // AssertInfo(iter_beg + 1 == iter_end, "There are no repeated keys in more than one results"); auto [entry_id, entry_offset] = *iter_beg; dst_ids.push_back(entry_id);