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

[CQF] Constant folding for "isArray"

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Optimization
    • Fully Compatible

      In const_eval.cpp implement constant folding for FunctionCall("isArray").

       

      Check if the argument to the function (it has only one) is a Constant. If so, check if the tag is Array or Array set, if so call swapAndUpdate with Constant::true otherwise swapAndUpdate with Constant::false

            Assignee:
            jacob.evans@mongodb.com Jacob Evans
            Reporter:
            svilen.mihaylov@mongodb.com Svilen Mihaylov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: