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: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Query Integration

      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:
            backlog-query-integration [DO NOT USE] Backlog - Query Integration
            Reporter:
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: