summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_planner_partialidx_test.cpp
diff options
context:
space:
mode:
authorDavid Hatch <david.hatch@mongodb.com>2016-06-14 11:51:33 -0400
committerDavid Hatch <david.hatch@mongodb.com>2016-06-22 15:42:59 -0400
commit40f20eca105a5e06a72df583ac654f946e9b058e (patch)
tree0ca485f5a24297236b9455a6698e7135802e08cb /src/mongo/db/query/query_planner_partialidx_test.cpp
parentf517b05141a3f554d2fe51838ed33bc98cb8c5f2 (diff)
downloadmongo-40f20eca105a5e06a72df583ac654f946e9b058e.tar.gz
SERVER-23172 Allow use of indices for collation-aware queries that match nested objects or arrays.
Diffstat (limited to 'src/mongo/db/query/query_planner_partialidx_test.cpp')
-rw-r--r--src/mongo/db/query/query_planner_partialidx_test.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/mongo/db/query/query_planner_partialidx_test.cpp b/src/mongo/db/query/query_planner_partialidx_test.cpp
index 476e09041e3..39a025079d0 100644
--- a/src/mongo/db/query/query_planner_partialidx_test.cpp
+++ b/src/mongo/db/query/query_planner_partialidx_test.cpp
@@ -464,21 +464,6 @@ TEST_F(QueryPlannerTest, PartialIndexStringComparisonMatchingCollators) {
assertNumSolutions(0U);
}
-TEST_F(QueryPlannerTest, PartialIndexFilterStringComparisonNonMatchingCollators) {
- params.options = QueryPlannerParams::NO_TABLE_SCAN;
- BSONObj filterObj(fromjson("{a: {$lt: {b: 'abc'}}}"));
- CollatorInterfaceMock collator(CollatorInterfaceMock::MockType::kReverseString);
- std::unique_ptr<MatchExpression> filterExpr = parseMatchExpression(filterObj, &collator);
- addIndex(fromjson("{a: 1}"), filterExpr.get(), &collator);
-
- runQuery(fromjson("{a: {b: 1}}"));
- assertNumSolutions(1U);
- assertSolutionExists(
- "{fetch: {filter: null, node: {ixscan: "
- "{filter: null, pattern: {a: 1}, "
- "bounds: {a: [[{b: 1}, {b: 1}, true, true]]}}}}}");
-}
-
TEST_F(QueryPlannerTest, PartialIndexNoStringComparisonNonMatchingCollators) {
params.options = QueryPlannerParams::NO_TABLE_SCAN;
BSONObj filterObj(fromjson("{a: {$gt: 0}}"));