From edbee9ce56c066cdb16e29bb5e207b2c2288a598 Mon Sep 17 00:00:00 2001 From: sunby Date: Wed, 27 Nov 2024 15:11:53 +0800 Subject: [PATCH] fix: Fix wrong index in term filter Signed-off-by: sunby --- internal/core/src/exec/expression/TermExpr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/core/src/exec/expression/TermExpr.cpp b/internal/core/src/exec/expression/TermExpr.cpp index 992d09b8eaae5..68d36d0583238 100644 --- a/internal/core/src/exec/expression/TermExpr.cpp +++ b/internal/core/src/exec/expression/TermExpr.cpp @@ -275,9 +275,9 @@ PhyTermFilterExpr::ExecTermArrayVariableInField() { TargetBitmapView res, TargetBitmapView valid_res, const ValueType& target_val) { - auto executor = [&](size_t i) { - for (int i = 0; i < data[i].length(); i++) { - auto val = data[i].template get_data(i); + auto executor = [&](size_t idx) { + for (int i = 0; i < data[idx].length(); i++) { + auto val = data[idx].template get_data(i); if (val == target_val) { return true; }