summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/explain.cpp
diff options
context:
space:
mode:
authorRuoxin Xu <ruoxin.xu@mongodb.com>2022-07-04 08:50:40 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-07-04 09:50:51 +0000
commitfaae30946d1b773b2b32db06c6ac6f0208188a10 (patch)
tree4f74608156be5e4f2837168d49645d80f1537983 /src/mongo/db/query/explain.cpp
parente2d178fba66da9a0c4f99fa87a5095d813f8816c (diff)
downloadmongo-faae30946d1b773b2b32db06c6ac6f0208188a10.tar.gz
SERVER-61507 Integrate $group lowering with the new SBE cache
Diffstat (limited to 'src/mongo/db/query/explain.cpp')
-rw-r--r--src/mongo/db/query/explain.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mongo/db/query/explain.cpp b/src/mongo/db/query/explain.cpp
index 568c3da9fe0..4aa6e7bad7f 100644
--- a/src/mongo/db/query/explain.cpp
+++ b/src/mongo/db/query/explain.cpp
@@ -98,10 +98,7 @@ void generatePlannerInfo(PlanExecutor* exec,
QuerySettingsDecoration::get(mainCollection->getSharedDecorations());
if (exec->getCanonicalQuery()->isSbeCompatible() &&
feature_flags::gFeatureFlagSbePlanCache.isEnabledAndIgnoreFCV() &&
- !exec->getCanonicalQuery()->getForceClassicEngine() &&
- // TODO SERVER-61507: remove canUseSbePlanCache check when $group pushdown is
- // integrated with SBE plan cache.
- canonical_query_encoder::canUseSbePlanCache(*exec->getCanonicalQuery())) {
+ !exec->getCanonicalQuery()->getForceClassicEngine()) {
const auto planCacheKeyInfo =
plan_cache_key_factory::make(*exec->getCanonicalQuery(), collections);
planCacheKeyHash = planCacheKeyInfo.planCacheKeyHash();