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

cover_null_queries.js returns unexpected output for CQF passthrough

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Optimization
    • ALL

    Description

      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}

      .

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            alya.berciu@mongodb.com Alya Berciu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: