diff options
author | Yoonsoo Kim <yoonsoo.kim@mongodb.com> | 2022-01-19 21:00:10 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-01-19 22:04:06 +0000 |
commit | ab99324a4ac6e15f1805fbfce29f90832f471330 (patch) | |
tree | 43d9130114ed78b73002d5c71d957d8d10cc541e /jstests/aggregation | |
parent | f9045f4d7b0688871499aec95eee14f27792dc81 (diff) | |
download | mongo-ab99324a4ac6e15f1805fbfce29f90832f471330.tar.gz |
SERVER-59951 Support document _id expression
Diffstat (limited to 'jstests/aggregation')
-rw-r--r-- | jstests/aggregation/bugs/groupMissing.js | 8 |
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(); |