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

[CQF] Support constant folding of NaN comparisons to query parameters

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2023-11-27

      Since we know that we will never parameterize NaN constants, when we encounter a comparison between a parameter and NaN, we should be able to take advantage of the type of the parameter to constant fold the expression. This is follow up work to SERVER-82148.

      We frequently encounter expressions with comparisons to NaN because of type bracketing comparisons generated during ABT translation. For example, {a: {$gt: 5, $lt: 10}}.

            Assignee:
            lynne.wang@mongodb.com Lynne Wang
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: