Refactor run_aggregate to use a helper function that prepares the pipeline

XMLWordPrintableJSON

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

      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
            Reporter:
            Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: