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

Fix grammar for single argument expressions to accept a singleton array

    • Fully Compatible
    • ALL
    • Query 2020-10-05

      There are several aggregation expressions which accept a single expression that must evaluate to a number, for instance. Due to the way our ExpressionNary class hierarchy is implemented, this is equivalent to a singleton array with the one expression (which is actually how we'll serialize such expressions). Need to investigate more thoroughly, but at a minimum these will need to be fixed:

      $abs, $ceil, $exp, $floor, $ln, $log10, $sqrt

            Assignee:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Reporter:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: