...
> db.test.find() { "_id" : ..., "a" : [ ] } { "_id" : ..., "a" : [ 1, 2, 3 ] } { "_id" : ..., "a" : [ {c: 1} ] } [Classic Engine] > db.test.find({a: {$not: {$elemMatch: {b: 1}}}}).toArray() [ { "_id" : ..., "a" : [ ] }, { "_id" : ..., "a" : [ 1, 2, 3 ] }, { "_id" : ..., "a" : [ {c: 1} ] } ] [SBE] > db.test.find({a: {$not: {$elemMatch: {b: 1}}}}).toArray() [ ]
xgen-internal-githook commented on Sat, 13 Mar 2021 06:03:05 +0000: Author: {'name': 'Drew Paroski', 'email': 'drew.paroski@mongodb.com', 'username': 'paroski'} Message: SERVER-54332 [SBE] $elemMatch with object filter returns no documents Branch: master https://github.com/mongodb/mongo/commit/a90fee27ae85894ae6e4522251fe0ea35ef473c7 xgen-internal-githook commented on Fri, 12 Mar 2021 13:48:09 +0000: Author: {'name': 'Sviatlana Zuiko', 'email': 'sviatlana.zuiko@mongodb.com', 'username': 'szuiko'} Message: Revert "SERVER-54332 [SBE] $elemMatch with object filter returns no documents" This reverts commit 8b8c06cf8551ac34943cf81ab89dbf97ce8acd98. Branch: master https://github.com/mongodb/mongo/commit/64aaf4f7d91fdd53f9adf3f233da5664ffcff183 xgen-internal-githook commented on Fri, 12 Mar 2021 01:18:51 +0000: Author: {'name': 'Mickey. J Winters', 'email': 'mickey.winters@mongodb.com', 'username': 'mjrb'} Message: SERVER-54332 [SBE] $elemMatch with object filter returns no documents Branch: master https://github.com/mongodb/mongo/commit/8b8c06cf8551ac34943cf81ab89dbf97ce8acd98
Click on a version to see all relevant bugs
MongoDB Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.