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

Refactor run_aggregate to use a helper function that prepares the pipeline

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Fully Compatible

      Preparation of the parsed mongo::Pipeline seems to be one logical step in the overall run_aggregate path. We should break it into a helper function to clean up the high-level path, whether the input is the aggregation plan and the resolved collation, and the output is the pipeline (which includes the expression context). In summary, this step will make the expression context, parse the pipeline, register query stats, optimize and rewrite the pipeline as necessary, and coordinate small checks along the way.

            Assignee:
            erin.liang@mongodb.com Erin Liang
            Reporter:
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: