summaryrefslogtreecommitdiff
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-06 10:58:53 +0000
commit4f14082a6c5f2f71fb2b63f9366714147a0349fc (patch)
tree83c12df73b645e1f5a9b38bdfba9f8ff321d0643
parent8f2a387c7276734ef35daa463abfd1d16dfce6ad (diff)
downloadmongo-4f14082a6c5f2f71fb2b63f9366714147a0349fc.tar.gz
SERVER-66245 Copy sbeCompatible flag for subqueries
(cherry picked from commit 6bf7fbe9eefff52f49b0f7898c86d7bec4d5985a)
-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 a4dc55a3180..e1d9c5a2b00 100644
--- a/src/mongo/db/query/query_planner.cpp
+++ b/src/mongo/db/query/query_planner.cpp
@@ -1571,6 +1571,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.