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

Add support for multiple collection in SlotBasedStageBuilder

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • QE 2022-03-07, QE 2022-03-21

      SlotBasedStageBuilder currently assumes that the entire plan refers to a single collection, and only that collection reference is used when building scans.

      This assumption is no longer true, when adding support to $lookup, as the $lookup references foreign collections.

      We need to modify SlotBaseStageBuilder to provide access to all referenced collections. Possibly by using:
      map of string -> CollectionPtr _collections.
      in the StageBuilder instead of just:
      const CollectionPtr& _collection

            Assignee:
            mihai.andrei@mongodb.com Mihai Andrei
            Reporter:
            anna.wawrzyniak@mongodb.com Anna Wawrzyniak
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: