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

XMLWordPrintableJSON

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

      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
              Reporter:
              Ben Shteinfeld
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: