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

aggregation: treat undefined values the same as null values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.1.2
    • 2.2.0-rc0
    • Aggregation Framework
    • None
    • 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

              mathias@mongodb.com Mathias Stearn
              cwestin Chris Westin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: