From af6d71da7aeda1180cdfab194dae30d78f754bcd Mon Sep 17 00:00:00 2001 From: sunby Date: Thu, 14 Nov 2024 18:06:02 +0800 Subject: [PATCH] fix: Fix query failure with inverted index Signed-off-by: sunby --- internal/core/src/exec/expression/CompareExpr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/core/src/exec/expression/CompareExpr.h b/internal/core/src/exec/expression/CompareExpr.h index b8815357441a3..25138e45ead19 100644 --- a/internal/core/src/exec/expression/CompareExpr.h +++ b/internal/core/src/exec/expression/CompareExpr.h @@ -162,8 +162,8 @@ class PhyCompareFilterExpr : public Expr { GetCurrentRows() { if (segment_chunk_reader_.segment_->is_chunked()) { auto current_rows = - is_left_indexed_ && segment_chunk_reader_.segment_->type() == - SegmentType::Sealed + is_left_indexed_ && segment_chunk_reader_.segment_->HasRawData( + left_field_.get()) ? left_current_chunk_pos_ : segment_chunk_reader_.segment_->num_rows_until_chunk( left_field_, left_current_chunk_id_) +