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

Expose $multiply as both an accumulator and an expression

    • Query Execution

      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.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: