diff options
author | Jacob Evans <jacob.evans@10gen.com> | 2019-01-04 13:15:58 -0500 |
---|---|---|
committer | Jacob Evans <jacob.evans@10gen.com> | 2019-01-29 13:53:10 -0500 |
commit | 41557fac170a905cb7b0cca7564e4c0ec48bbefd (patch) | |
tree | 5dc37a78b02e03ceefa34f75abc13b5062e17a0e /jstests/core/explain_distinct.js | |
parent | b4ee2a119c65d1f2a0cb2288c1242fbf4f74a543 (diff) | |
download | mongo-41557fac170a905cb7b0cca7564e4c0ec48bbefd.tar.gz |
SERVER-38695 Make QuerySolutionNode subclasses for projection fast-paths
Diffstat (limited to 'jstests/core/explain_distinct.js')
-rw-r--r-- | jstests/core/explain_distinct.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/core/explain_distinct.js b/jstests/core/explain_distinct.js index 5f9fda44d18..a3cb6606d30 100644 --- a/jstests/core/explain_distinct.js +++ b/jstests/core/explain_distinct.js @@ -58,7 +58,7 @@ var explain = runDistinctExplain(coll, 'a', {}); assert.commandWorked(explain); assert.eq(2, explain.executionStats.nReturned); - assert(planHasStage(db, explain.queryPlanner.winningPlan, "PROJECTION")); + assert(planHasStage(db, explain.queryPlanner.winningPlan, "PROJECTION_COVERED")); assert(planHasStage(db, explain.queryPlanner.winningPlan, "DISTINCT_SCAN")); // Check that the DISTINCT_SCAN stage has the correct stats. @@ -78,7 +78,7 @@ var explain = runDistinctExplain(coll, 'a', {a: 1}); assert.commandWorked(explain); assert.eq(1, explain.executionStats.nReturned); - assert(planHasStage(db, explain.queryPlanner.winningPlan, "PROJECTION")); + assert(planHasStage(db, explain.queryPlanner.winningPlan, "PROJECTION_COVERED")); assert(planHasStage(db, explain.queryPlanner.winningPlan, "DISTINCT_SCAN")); assert.eq([1], coll.distinct('b', {a: 1})); @@ -86,6 +86,6 @@ assert.commandWorked(explain); assert.eq(1, explain.executionStats.nReturned); assert(!planHasStage(db, explain.queryPlanner.winningPlan, "FETCH")); - assert(planHasStage(db, explain.queryPlanner.winningPlan, "PROJECTION")); + assert(planHasStage(db, explain.queryPlanner.winningPlan, "PROJECTION_COVERED")); assert(planHasStage(db, explain.queryPlanner.winningPlan, "DISTINCT_SCAN")); })(); |