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; }