mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
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:
parent
9cb5396cf6
commit
02bd916fa4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user