cover_null_queries.js returns unexpected output for CQF passthrough

XMLWordPrintableJSON

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

      It looks like some cases in jstests/core/cover_null_queries.js (once the PR for SERVER-70436 is merged) return incorrect output on CQF passthroughs.

      Specifically, the command coll.find({"a.b": null}, {_id: 1}) matches the following documents, which are not matched in the classic engine:
      {_id: 14, a: [1, 2, 3]},
      {_id: 16, a: [null]},
       
      Note that the only index is

      {"a.b": 1, _id: 1}

      .

              Assignee:
              [DO NOT USE] Backlog - Query Optimization
              Reporter:
              Alya Berciu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: