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

group failed : Command failed with error 139: 'Failure to enumerate object'

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 3.2.3
    • None
    • JavaScript, Querying
    • None
    • Fully Compatible
    • ALL
    • Hide

      db.coll.insert({_id: 1, user: {id: 1016, name: "jack"}})
      db.coll.insert({_id: 2, user: {id: 1017, name: "rose"}})
       
      db.getCollection("coll").group({
          key:{'user.id':1},
       
      reduce:function(doc,value){
          value.user = doc.user; 
          value.order_count++;
          return value;
      },
      initial:{
      order_count:0,user:0
      },
      finalize:function(res){
      }
      })  
      

      Show
      db.coll.insert({_id: 1, user: {id: 1016, name: "jack" }}) db.coll.insert({_id: 2, user: {id: 1017, name: "rose" }})   db.getCollection( "coll" ).group({     key:{ 'user.id' :1},   reduce: function (doc,value){     value.user = doc.user;      value.order_count++;      return  value; }, initial:{ order_count:0,user:0 }, finalize: function (res){ } })  
    • Platforms 12 (04/01/16)

    Description

      group failed : Command failed with error 139: 'Failure to enumerate object'

      3.2 not work, but 3.0 works

      Attachments

        Issue Links

          Activity

            People

              jonathan.reams@mongodb.com Jonathan Reams
              zyd_com@126.com Zhang Youdong
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: