[CQF] Equality to null does not match undefined

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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}]);
      

              Assignee:
              [DO NOT USE] Backlog - Query Optimization
              Reporter:
              Nicholas Zolnierz
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: