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

Complex key in group command inserts wrong key into output object

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.1.1
    • Affects Version/s: 1.1.0
    • Component/s: None
    • None

      db.coll.insert({foo:{bar:1}})
      db.coll.group({key:

      {"foo.bar":true}

      , initial:

      {c:0}

      , reduce:function(doc,out){out.c++}})
      [

      {"bar" : 1 , "c" : 1}

      ]

      I think that should return:
      [

      {"foo.bar" : 1 , "c" : 1}

      ]

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: