From d692bb7ec6a4465a5ac56a8c81144c9612882221 Mon Sep 17 00:00:00 2001 From: sunby Date: Thu, 9 Jan 2025 13:11:10 +0800 Subject: [PATCH] fix: Fix in filter search result is empty if pk type is varchar Signed-off-by: sunby --- internal/core/src/segcore/ChunkedSegmentSealedImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/core/src/segcore/ChunkedSegmentSealedImpl.cpp b/internal/core/src/segcore/ChunkedSegmentSealedImpl.cpp index b31fec905ea4b..2fec24a1dd85c 100644 --- a/internal/core/src/segcore/ChunkedSegmentSealedImpl.cpp +++ b/internal/core/src/segcore/ChunkedSegmentSealedImpl.cpp @@ -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)) {