Guest User

Untitled

a guest
Jun 16th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. globaldb:PRIMARY> db.o1_name_sharded.aggregate([{$group:{_id:"$source",c:{$sum:1}}}])
  2. assert: command failed: {
  3. "_t" : "OKMongoResponse",
  4. "ok" : 0,
  5. "code" : 115,
  6. "errmsg" : "'$group' is not supported",
  7. "$err" : "'$group' is not supported"
  8. } : aggregate failed
  9. _getErrorWithCode@src/mongo/shell/utils.js:25:13
  10. doassert@src/mongo/shell/assert.js:16:14
  11. assert.commandWorked@src/mongo/shell/assert.js:370:5
  12. DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1319:5
  13. @(shell):1:1
  14.  
  15. 2017-06-16T17:33:22.692+0000 E QUERY [thread1] Error: command failed: {
  16. "_t" : "OKMongoResponse",
  17. "ok" : 0,
  18. "code" : 115,
  19. "errmsg" : "'$group' is not supported",
  20. "$err" : "'$group' is not supported"
  21. } : aggregate failed :
  22. _getErrorWithCode@src/mongo/shell/utils.js:25:13
  23. doassert@src/mongo/shell/assert.js:16:14
  24. assert.commandWorked@src/mongo/shell/assert.js:370:5
  25. DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1319:5
  26. @(shell):1:1
Add Comment
Please, Sign In to add comment