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

Expose $multiply as both an accumulator and an expression

    XMLWordPrintableJSON

Details

    • Query Execution

    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

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: