summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/optimizer/index_bounds.cpp
diff options
context:
space:
mode:
authorSvilen Mihaylov <svilen.mihaylov@mongodb.com>2022-10-18 18:51:26 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-18 20:24:54 +0000
commit5e5d1f9d743ccbc1bb23266b75dc4f7af105c1d9 (patch)
treef9b769a9913e960d49b0926ece06c6a136d13f92 /src/mongo/db/query/optimizer/index_bounds.cpp
parent3a9e3e4462c9e16bdc8ce30c75cd5db71ad19b2f (diff)
downloadmongo-5e5d1f9d743ccbc1bb23266b75dc4f7af105c1d9.tar.gz
SERVER-70470 [CQF] Modularize core optimizer
Diffstat (limited to 'src/mongo/db/query/optimizer/index_bounds.cpp')
-rw-r--r--src/mongo/db/query/optimizer/index_bounds.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/optimizer/index_bounds.cpp b/src/mongo/db/query/optimizer/index_bounds.cpp
index 82c98f29341..481fe590ba9 100644
--- a/src/mongo/db/query/optimizer/index_bounds.cpp
+++ b/src/mongo/db/query/optimizer/index_bounds.cpp
@@ -152,8 +152,8 @@ bool PartialSchemaRequirement::getIsPerfOnly() const {
return _isPerfOnly;
}
-bool PartialSchemaRequirement::mayReturnNull() const {
- return hasBoundProjectionName() && checkMaybeHasNull(getIntervals());
+bool PartialSchemaRequirement::mayReturnNull(const ConstFoldFn& constFold) const {
+ return hasBoundProjectionName() && checkMaybeHasNull(getIntervals(), constFold);
};
/**