summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/ce/test_utils.h
diff options
context:
space:
mode:
authorDavid Percy <david.percy@mongodb.com>2023-03-14 16:00:26 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-03-30 21:53:55 +0000
commit187851fdfda231e63a13b1189a8f8566c57e701a (patch)
tree856363f5466fd8167a2af8262b02f1b82122dbd6 /src/mongo/db/query/ce/test_utils.h
parent6afa8dd2bb3435e3632375a545d8a2c76a1cd620 (diff)
downloadmongo-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.h2
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;
}