fix: Fix variable redeclaration in term filter (#38045)

https://github.com/milvus-io/milvus/issues/38046

Signed-off-by: sunby <sunbingyi1992@gmail.com>
pull/38137/head
Bingyi Sun 2024-12-02 15:10:38 +08:00 committed by GitHub
parent 4c623cebeb
commit 90064cd47b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

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