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

Implement and test invalid usage of $unionWith aggregation stage

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Query 2020-02-10

      • $unionWith is not allowed to read from a sharded collection if it is part of the inner pipeline of a $lookup.
      • Disallowed within an update pipeline
      • Disallowed alongside a $changeStream

      The sub-pipeline has the following restrictions:

      • Cannot contain stages which write data ($merge, $out).
      • Cannot contain a $changeStream stage, or any collection-less aggregation stage.
      • Cannot contain a stage which must run on mongos or the local host that the command was sent. At the moment, the only relevant stages are $listCachedAndActiveUsers, $listLocalSessions, $currentOp with localOps: true, and several internal change stream stages.

            Assignee:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Reporter:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: