diff options
author | Alexander Ignatyev <alexander.ignatyev@mongodb.com> | 2022-05-05 21:08:16 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-06 10:58:53 +0000 |
commit | 4f14082a6c5f2f71fb2b63f9366714147a0349fc (patch) | |
tree | 83c12df73b645e1f5a9b38bdfba9f8ff321d0643 | |
parent | 8f2a387c7276734ef35daa463abfd1d16dfce6ad (diff) | |
download | mongo-4f14082a6c5f2f71fb2b63f9366714147a0349fc.tar.gz |
SERVER-66245 Copy sbeCompatible flag for subqueries
(cherry picked from commit 6bf7fbe9eefff52f49b0f7898c86d7bec4d5985a)
-rw-r--r-- | src/mongo/db/query/query_planner.cpp | 1 |
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. |