Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-70929

cover_null_queries.js returns unexpected output for CQF passthrough

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

      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:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            alya.berciu@mongodb.com Alya Berciu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: