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

aggregation: treat undefined values the same as null values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.2.0-rc0
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Operating System:
      ALL

      Description

      $group currently doesn't allow for the grouping key to be undefined. The attached script demonstrates the problem, yielding this error for the last two cases:

      {
      "errmsg" : "exception: the _id field for a group must not be undefined",
      "code" : 15956,
      "ok" : 0
      }

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: