summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_planner_index_test.cpp
diff options
context:
space:
mode:
authorIan Boros <ian.boros@mongodb.com>2019-11-11 17:38:51 +0000
committerevergreen <evergreen@mongodb.com>2019-11-11 17:38:51 +0000
commitf8f55e1825ee5c7bdb3208fc7c5b54321d172732 (patch)
treed5d2a6ee379f283c41e2e9a2731193b1ab2376b1 /src/mongo/db/query/query_planner_index_test.cpp
parentda86ed254a0fb227fe16f2475badf8b2b9cbadcb (diff)
downloadmongo-f8f55e1825ee5c7bdb3208fc7c5b54321d172732.tar.gz
SERVER-44377 generate correct plan for indexed inequalities to null
Diffstat (limited to 'src/mongo/db/query/query_planner_index_test.cpp')
-rw-r--r--src/mongo/db/query/query_planner_index_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/query_planner_index_test.cpp b/src/mongo/db/query/query_planner_index_test.cpp
index b17dde7ce04..b819a3311f6 100644
--- a/src/mongo/db/query/query_planner_index_test.cpp
+++ b/src/mongo/db/query/query_planner_index_test.cpp
@@ -181,13 +181,13 @@ TEST_F(QueryPlannerTest, SparseIndexCanSupportGTEOrLTENull) {
assertNumSolutions(1U);
assertSolutionExists(
"{fetch: {filter: {i: {$gte: null}}, node: {ixscan: {pattern: "
- "{i: 1}, bounds: {i: [[null,null,true,true]]}}}}}");
+ "{i: 1}, bounds: {i: [[undefined,undefined,true,true], [null,null,true,true]]}}}}}");
runQuery(fromjson("{i: {$lte: null}}"));
assertNumSolutions(1U);
assertSolutionExists(
"{fetch: {filter: {i: {$lte: null}}, node: {ixscan: {pattern: "
- "{i: 1}, bounds: {i: [[null,null,true,true]]}}}}}");
+ "{i: 1}, bounds: {i: [[undefined,undefined,true,true], [null,null,true,true]]}}}}}");
}
//