diff options
author | James Wahlin <james@mongodb.com> | 2019-02-26 14:55:59 -0500 |
---|---|---|
committer | James Wahlin <james@mongodb.com> | 2019-03-15 09:01:46 -0400 |
commit | 0f4aa577ed1e408eed4bb2b0ed8207f911683f7c (patch) | |
tree | f64974bf59cfb743520a3b6f1bc5886a3b8e43fb /src/mongo/db/query/query_planner_wildcard_index_test.cpp | |
parent | 0cfc32589d5f6436e83d6d0d290849cf3798cbae (diff) | |
download | mongo-0f4aa577ed1e408eed4bb2b0ed8207f911683f7c.tar.gz |
SERVER-15221 Planner sort analysis should not add FETCH stage if sort key included in index key pattern
Diffstat (limited to 'src/mongo/db/query/query_planner_wildcard_index_test.cpp')
-rw-r--r-- | src/mongo/db/query/query_planner_wildcard_index_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/query_planner_wildcard_index_test.cpp b/src/mongo/db/query/query_planner_wildcard_index_test.cpp index b045dd27ad5..a4841718b28 100644 --- a/src/mongo/db/query/query_planner_wildcard_index_test.cpp +++ b/src/mongo/db/query/query_planner_wildcard_index_test.cpp @@ -1824,8 +1824,8 @@ TEST_F(QueryPlannerWildcardTest, CanProduceSortMergePlanWithWildcardIndex) { "{ixscan: {pattern: {$_path: 1, b: 1}, bounds:" "{$_path: [['b','b',true,true]], b: [[2,2,true,true]]}}}]}}}}"); assertSolutionExists( - "{sort: {pattern: {b: -1}, limit: 0, node: {sortKeyGen: {node: " - "{fetch: {filter: null, node: {or: {nodes: [" + "{fetch: {filter: null, node: {sort: {pattern: {b: -1}, limit: 0, node: {sortKeyGen: " + "{node: {or: {nodes: [" "{fetch: {filter: {b: 1}, node: {ixscan: {pattern: {$_path: 1, a: 1}, bounds:" "{$_path: [['a','a',true,true]], a: [[1,1,true,true]]}}}}}," "{ixscan: {filter: null, pattern: {$_path: 1, b: 1}, bounds:" |