diff options
author | David Percy <david.percy@mongodb.com> | 2023-03-14 16:00:26 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-03-30 21:53:55 +0000 |
commit | 187851fdfda231e63a13b1189a8f8566c57e701a (patch) | |
tree | 856363f5466fd8167a2af8262b02f1b82122dbd6 /src/mongo/db/query/ce/test_utils.h | |
parent | 6afa8dd2bb3435e3632375a545d8a2c76a1cd620 (diff) | |
download | mongo-187851fdfda231e63a13b1189a8f8566c57e701a.tar.gz |
SERVER-74539 Enable disjunction in PSR conversion
Diffstat (limited to 'src/mongo/db/query/ce/test_utils.h')
-rw-r--r-- | src/mongo/db/query/ce/test_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/ce/test_utils.h b/src/mongo/db/query/ce/test_utils.h index a894be82783..3a9c7f9c78e 100644 --- a/src/mongo/db/query/ce/test_utils.h +++ b/src/mongo/db/query/ce/test_utils.h @@ -116,7 +116,7 @@ bool isSargableNode(const ABT& n) { // for a SargableNode with a specific number of predicates. For tests, we only care about // verifying the cardinality of that one. if (auto* sargable = n.cast<optimizer::SargableNode>()) { - return sargable->getReqMap().numLeaves() == NumReq; + return PSRExpr::numLeaves(sargable->getReqMap().getRoot()) == NumReq; } return false; } |