Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
Signed-off-by: sunby <[email protected]>
  • Loading branch information
sunby committed Nov 7, 2024
1 parent 002940d commit 270f9ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/core/src/exec/expression/TermExpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(
field_id_, i, min, max, true, true)) {
return false;
} else {
res = true;
}
}
return true;
return res;
};

// using skip index to help skipping this segment
Expand Down

0 comments on commit 270f9ab

Please sign in to comment.