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

Change classic behavior: equality to null should not match undefined

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: 8.0.0-rc0
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2024-02-05, QO 2024-02-19, QO 2024-03-04, QO 2024-03-18
    • 166

      The undefined type has been deprecated for a long time. In v8.0, we will change classic and stage builders behavior so that comparison to null does not match undefined.

      This ticket will include the necessary updates to the classic comparison expressions, classic index bounds building, and stage builders code. We should consider doing a performance investigation to see if there are improvements for comparison to null queries, which should be simpler after this change. Also, we will likely need to make updates to the query fuzzers. We should consider if it's worthwhile to fuzz with data containing undefined values.

      In preparation for this, we will provide downstream notifications, including recommendations for ways to achieve the original behavior, when the work is complete. 

            Assignee:
            hana.pearlman@mongodb.com Hana Pearlman
            Reporter:
            hana.pearlman@mongodb.com Hana Pearlman
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: