summaryrefslogtreecommitdiff
path: root/jstests/aggregation/bugs
diff options
context:
space:
mode:
authorYoonsoo Kim <yoonsoo.kim@mongodb.com>2022-01-19 21:00:10 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-01-19 22:04:06 +0000
commitab99324a4ac6e15f1805fbfce29f90832f471330 (patch)
tree43d9130114ed78b73002d5c71d957d8d10cc541e /jstests/aggregation/bugs
parentf9045f4d7b0688871499aec95eee14f27792dc81 (diff)
downloadmongo-ab99324a4ac6e15f1805fbfce29f90832f471330.tar.gz
SERVER-59951 Support document _id expression
Diffstat (limited to 'jstests/aggregation/bugs')
-rw-r--r--jstests/aggregation/bugs/groupMissing.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/jstests/aggregation/bugs/groupMissing.js b/jstests/aggregation/bugs/groupMissing.js
index 179c8ec4527..f13477a90b6 100644
--- a/jstests/aggregation/bugs/groupMissing.js
+++ b/jstests/aggregation/bugs/groupMissing.js
@@ -38,12 +38,6 @@ coll.insert({});
res = coll.aggregate({$group: {_id: {a: "$a"}}});
assert(resultsEq(res.toArray(), [{_id: {a: null}}]));
-// Correct behavior after SERVER-21992 is fixed.
-if (0) {
- res = coll.aggregate({$group: {_id: {a: "$a"}}});
- assert(resultsEq(res.toArray(), [{_id: {a: null}}, {_id: {a: {}}}]));
-}
-
// Bug, see SERVER-21992.
coll.createIndex({a: 1});
res = coll.aggregate({$group: {_id: {a: "$a"}}});
@@ -52,7 +46,7 @@ assert(resultsEq(res.toArray(), [{_id: {a: null}}]));
// Correct behavior after SERVER-21992 is fixed.
if (0) {
res = coll.aggregate({$group: {_id: {a: "$a"}}});
- assert(resultsEq(res.toArray(), [{_id: {a: null}}, {_id: {a: {}}}]));
+ assert(resultsEq(res.toArray(), [{_id: {a: null}}, {_id: {}}]));
}
coll.drop();