Changed behavior in SBE when filter is {"":null}

XMLWordPrintableJSON

    • Fully Compatible
    • v5.0
    • Query Execution 2021-07-26, QE 2021-08-09, QE 2021-08-23, QE 2021-09-06, QE 2021-09-20
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      On the legacy query engine (4.4, 5.0 with internalQueryForceClassicEngine), passing on a filter object with the form

      {"": null}

      evaluates as true and returns all docs.
      However on the new query engine it evaluates as false.

      This was observed by a test case with the Go Driver passing bson.D{{}} as the filter.
      Changing to bson.D{} (which translates to filter: {}) works around the issue.

              Assignee:
              Andrii Dobroshynski (Inactive)
              Reporter:
              Tomer Yakir
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: