From 270f9ab1bde90cdd61b69d389a61e7fcfed52b32 Mon Sep 17 00:00:00 2001 From: sunby Date: Thu, 7 Nov 2024 14:31:10 +0800 Subject: [PATCH] fix ut Signed-off-by: sunby --- internal/core/src/exec/expression/TermExpr.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/core/src/exec/expression/TermExpr.cpp b/internal/core/src/exec/expression/TermExpr.cpp index 0aa6406fceff9..992d09b8eaae5 100644 --- a/internal/core/src/exec/expression/TermExpr.cpp +++ b/internal/core/src/exec/expression/TermExpr.cpp @@ -139,13 +139,16 @@ PhyTermFilterExpr::CanSkipSegment() { min = i == 0 ? val : std::min(val, min); } auto can_skip = [&]() -> bool { + bool res = false; for (int i = 0; i < num_data_chunk_; ++i) { if (!skip_index.CanSkipBinaryRange( field_id_, i, min, max, true, true)) { return false; + } else { + res = true; } } - return true; + return res; }; // using skip index to help skipping this segment