summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/optimizer/utils/utils.h
diff options
context:
space:
mode:
authorSvilen Mihaylov <svilen.mihaylov@mongodb.com>2022-05-27 19:35:12 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-27 20:47:40 +0000
commitc812983558ae5a4543db6b16f26ce1190edfdef7 (patch)
treec5c6f7f06d9a7500e944f4ebeb9ddd3e6f8cf40c /src/mongo/db/query/optimizer/utils/utils.h
parenta474d4efa5a999526e696423af5d30f4f5187613 (diff)
downloadmongo-c812983558ae5a4543db6b16f26ce1190edfdef7.tar.gz
SERVER-62961 Fix ABT->SBE lowering of EvalFilter paths to correctly handle comparisons with arrays
Diffstat (limited to 'src/mongo/db/query/optimizer/utils/utils.h')
-rw-r--r--src/mongo/db/query/optimizer/utils/utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/query/optimizer/utils/utils.h b/src/mongo/db/query/optimizer/utils/utils.h
index a42fd47714b..42845f0ce95 100644
--- a/src/mongo/db/query/optimizer/utils/utils.h
+++ b/src/mongo/db/query/optimizer/utils/utils.h
@@ -176,6 +176,11 @@ struct PartialSchemaReqConversion {
// If we have determined that we have a contradiction.
bool _hasEmptyInterval;
+
+ // If true, retain original predicate after the conversion. In this case, the requirement map
+ // might capture only a part of the predicate.
+ // TODO: consider generalizing to retain only a part of the predicate.
+ bool _retainPredicate;
};
/**