Skip to content

Commit

Permalink
fix: fix json in [] expr bug (#36721)
Browse files Browse the repository at this point in the history
#36718

Signed-off-by: luzhang <[email protected]>
Co-authored-by: luzhang <[email protected]>
  • Loading branch information
zhagnlu and luzhang authored Oct 10, 2024
1 parent f7b8114 commit b1e678d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions internal/core/src/exec/expression/TermExpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ PhyTermFilterExpr::ExecTermArrayFieldInVariable() {

if (term_set.empty()) {
res.reset();
MoveCursor();
return res_vec;
}

Expand All @@ -312,11 +313,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;
Expand Down Expand Up @@ -414,9 +410,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;
}

Expand Down

0 comments on commit b1e678d

Please sign in to comment.