Skip to content

Commit

Permalink
fix: Fix variable redeclaration in term filter (milvus-io#38045)
Browse files Browse the repository at this point in the history
milvus-io#38046

Signed-off-by: sunby <[email protected]>
  • Loading branch information
sunby authored Dec 2, 2024
1 parent 4c623ce commit 90064cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/core/src/exec/expression/TermExpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<GetType>(i);
auto executor = [&](size_t idx) {
for (int i = 0; i < data[idx].length(); i++) {
auto val = data[idx].template get_data<GetType>(i);
if (val == target_val) {
return true;
}
Expand Down

0 comments on commit 90064cd

Please sign in to comment.