mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 20:09:57 +08:00
Decide the final offset when repeated keys (#10671)
Signed-off-by: fishpenguin <kun.yu@zilliz.com>
This commit is contained in:
parent
fe8bfc3788
commit
471ddb07b2
@ -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<idx_t>& 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);
|
||||
|
Loading…
Reference in New Issue
Block a user