Details
-
Bug
-
Resolution: Unresolved
-
Major - P3
-
None
-
None
-
None
-
Query Optimization
-
ALL
Description
This is specific to bonsai, the classic optimizer does not have this issue. Equality to null correctly matches null and missing, however it misses values which are explicitly undefined. Simplest repro:
db.test.insert({_id: "a_undefined", a: undefined});
|
assert.eq(db.test.find({a: null}).toArray(), [{_id: "a_undefined", a: undefined}]);
|
Attachments
Issue Links
- depends on
-
SERVER-81378 Change classic behavior: equality to null should not match undefined
-
- In Code Review
-