Add pipeline_factory overload accepting an already-parsed LiteParsedPipeline

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description: Adds a new overload of pipeline_factory::makePipelineFromViewDefinition that accepts an already-parsed LiteParsedPipeline in place of the BSON pipeline vector. The existing BSON-taking overload is unchanged.

      Rationale: When a shard resolves a view locally, it has already constructed a LiteParsedPipeline for the user's pipeline. Forcing the view-resolution path to pass BSON and re-parse through LiteParsedPipeline::fromBSON duplicates work. Exposing an overload that takes the already-parsed LPP lets the caller reuse it, and cleanly separates the API shape change from SERVER-42282's feature logic.

            Assignee:
            Finley Lau
            Reporter:
            Finley Lau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: