summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorAlexander Ignatyev <alexander.ignatyev@mongodb.com>2022-05-05 21:08:16 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-05 23:25:42 +0000
commit6bf7fbe9eefff52f49b0f7898c86d7bec4d5985a (patch)
tree4e31d176d21b266b3718a597637917d642e2bb69 /src/mongo
parent2b8d2c722b4801e733f49ece64df07bae681e38d (diff)
downloadmongo-6bf7fbe9eefff52f49b0f7898c86d7bec4d5985a.tar.gz
SERVER-66245 Copy sbeCompatible flag for subqueries
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/db/query/query_planner.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/query/query_planner.cpp b/src/mongo/db/query/query_planner.cpp
index a0c76a346d7..4606cd16510 100644
--- a/src/mongo/db/query/query_planner.cpp
+++ b/src/mongo/db/query/query_planner.cpp
@@ -1557,6 +1557,7 @@ StatusWith<QueryPlanner::SubqueriesPlanningResult> QueryPlanner::planSubqueries(
}
branchResult->canonicalQuery = std::move(statusWithCQ.getValue());
+ branchResult->canonicalQuery->setSbeCompatible(query.isSbeCompatible());
// Plan the i-th child. We might be able to find a plan for the i-th child in the plan
// cache. If there's no cached plan, then we generate and rank plans using the MPS.