fix: Fix in filter search result is empty if pk type is varchar (#39106)

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

Signed-off-by: sunby <sunbingyi1992@gmail.com>
pull/39215/head
Bingyi Sun 2025-01-13 16:14:58 +08:00 committed by GitHub
parent accc9e7fbf
commit a00ba861a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1215,7 +1215,7 @@ ChunkedSegmentSealedImpl::search_sorted_pk(const PkType& pk,
var_column->GetChunk(i));
auto offset = string_chunk->binary_search_string(target);
for (; offset != -1 && offset < string_chunk->RowNums() &&
var_column->RawAt(offset) == target;
string_chunk->operator[](offset) == target;
++offset) {
auto segment_offset = offset + num_rows_until_chunk;
if (condition(segment_offset)) {