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

Allow hashagg stage to take in accumulator initialization expression

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • QE 2023-04-17

    Description

      Currently all of the accumulator initialization is performed as part of the accumulation itself. This is not applicable for $topN/$bottomN, because they can take an "n" parameter which varies between groups. We want to extend the hashagg stage so that it can initialize a group based on an expression.

      Attachments

        Activity

          People

            rui.liu@mongodb.com Rui Liu
            rui.liu@mongodb.com Rui Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: