diff --git a/backend/spi/spi-search/src/serv/pg/search_pg_item_serv.rs b/backend/spi/spi-search/src/serv/pg/search_pg_item_serv.rs index a6b052655..8cbe4c2d3 100644 --- a/backend/spi/spi-search/src/serv/pg/search_pg_item_serv.rs +++ b/backend/spi/spi-search/src/serv/pg/search_pg_item_serv.rs @@ -583,7 +583,7 @@ pub async fn search(search_req: &mut SearchItemSearchReq, funs: &TardisFunsInst, } else if ext_item.op == BasicQueryOpKind::IsNull { sql_and_where.push(format!("ext ->> '{}' is null", ext_item.field)); } else if ext_item.op == BasicQueryOpKind::IsNotNull { - where_fragments.push(format!( + sql_and_where.push(format!( "(ext ->> '{}' is not null or ext ->> '{}' != '' or ext ->> '{}' != '[]')", ext_item.field, ext_item.field, ext_item.field ));