fix: fix: fix json in [] expr bug (#36722)

pr: #36721

Signed-off-by: luzhang <luzhang@zilliz.com>
Co-authored-by: luzhang <luzhang@zilliz.com>
This commit is contained in:
zhagnlu 2024-10-09 21:53:20 +08:00 committed by GitHub
parent 9cb5396cf6
commit 02bd916fa4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -315,6 +315,7 @@ PhyTermFilterExpr::ExecTermArrayFieldInVariable() {
if (term_set.empty()) {
res.reset();
MoveCursor();
return res_vec;
}
@ -323,11 +324,6 @@ PhyTermFilterExpr::ExecTermArrayFieldInVariable() {
TargetBitmapView res,
int index,
const std::unordered_set<ValueType>& term_set) {
if (term_set.empty()) {
for (int i = 0; i < size; ++i) {
res[i] = false;
}
}
for (int i = 0; i < size; ++i) {
if (index >= data[i].length()) {
res[i] = false;
@ -425,9 +421,8 @@ PhyTermFilterExpr::ExecTermJsonFieldInVariable() {
}
if (term_set.empty()) {
for (size_t i = 0; i < real_batch_size; ++i) {
res[i] = false;
}
res.reset();
MoveCursor();
return res_vec;
}