summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/optimizer/physical_rewriter_optimizer_test.cpp
diff options
context:
space:
mode:
authorSvilen Mihaylov <svilen.mihaylov@mongodb.com>2022-09-10 22:54:50 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-10 23:59:08 +0000
commit8d09cb4f4704fe9492eca8654a9016e3ebc1d1bd (patch)
tree160b1963237a6cbec92fb47ee1e947ebe0784d42 /src/mongo/db/query/optimizer/physical_rewriter_optimizer_test.cpp
parentc341c59be75f87212a4985f055e01dfacfc8f166 (diff)
downloadmongo-8d09cb4f4704fe9492eca8654a9016e3ebc1d1bd.tar.gz
SERVER-69102 [CQF] Allow SBE plans which require an output RecordId slot
Diffstat (limited to 'src/mongo/db/query/optimizer/physical_rewriter_optimizer_test.cpp')
-rw-r--r--src/mongo/db/query/optimizer/physical_rewriter_optimizer_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/query/optimizer/physical_rewriter_optimizer_test.cpp b/src/mongo/db/query/optimizer/physical_rewriter_optimizer_test.cpp
index 854acd2bf6a..d8ca8f6ae0c 100644
--- a/src/mongo/db/query/optimizer/physical_rewriter_optimizer_test.cpp
+++ b/src/mongo/db/query/optimizer/physical_rewriter_optimizer_test.cpp
@@ -4729,12 +4729,14 @@ TEST(PhysRewriter, RequireRID) {
ASSERT_TRUE(phaseManager.optimize(optimized));
ASSERT_EQ(2, phaseManager.getMemo().getStats()._physPlanExplorationCount);
- // Make sure the Scan node returns rid.
+ // Make sure the Scan node returns rid, and the Root node refers to it.
ASSERT_EXPLAIN_V2(
"Root []\n"
"| | projections: \n"
+ "| | rid_0\n"
"| | root\n"
"| RefBlock: \n"
+ "| Variable [rid_0]\n"
"| Variable [root]\n"
"Filter []\n"
"| EvalFilter []\n"