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

Expose $multiply as both an accumulator and an expression

    XMLWordPrintable

    Details

      Description

      This would perform like $sum, but compute the multiplied product instead of an additive sum.

      Just as these operators became available both as accumulators (for grouping) and expressions (for simple transformations like in $project) in 3.2, we should make $multiply work with an array of inputs, and also be available as an accumulator during the $group stage.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-query-execution Backlog - Query Execution
              Reporter:
              jmikola Jeremy Mikola
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated: