Generalize HostAggStageAstNodeAdapter clone/promote paths beyond $_idLookup

XMLWordPrintableJSON

    • Type: Sub-task
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When SERVER-111607 introduced host::AggStageAstNode, it intentionally assumed that the wrapped type would only be LiteParsedInternalSearchIdLookup. Now that SERVER-126015 has added a second option with create_document_results_and_metadata(), we should also expect/allow LiteParsedInternalDocumentResultsAndMetadata in the clone and promote logic for host::AggStageAstNode.

      This PR should add a generic interface to host::AggStageAstNode that clones an abstract LiteParsedDocumentSource rather than a stage specific getIdLookupSpec(). Additionally, HostAggStageAstNodeAdapter::_hostClone() should be updated along with appropriate unit tests.

            Assignee:
            Josh Siegel
            Reporter:
            Josh Siegel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: