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

$documents doesn't work if a later stage needs to run on a shard (not mongos)

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Fully Compatible
    • ALL
    • v6.1, v6.0
    • Hide

      Try to run something like the following on a mongos:

      db.aggregate([{$documents: [{}]}, {$out: "write it down"}])
      
      Show
      Try to run something like the following on a mongos: db.aggregate([{$documents: [{}]}, {$out: "write it down" }])
    • QO 2023-09-04, QO 2023-09-18, QO 2023-10-02

      This limits the applicability, and is preventing another internal use case for $documents from working.

            Assignee:
            chii.huang@mongodb.com Chi-I Huang
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: