-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
ALL
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}]);
- depends on
-
SERVER-81378 Change classic behavior: equality to null should not match undefined
- Closed