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

$unwind should error when it encounters arrays within arrays

    • Query Optimization
    • Major Change
    • ALL

      > db.foo.insert({x: [{y: [1, 2]}, {y: [3, 4]}]})
      WriteResult({ "nInserted" : 1 })
      > db.foo.aggregate([{$unwind: '$x.y'}])
      // Produces no output.
      

      This is not very intuitive, and there doesn't seem to be any obvious reasonable output, so we should error in this case.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: