mongo-java-server: Error getting aggregate
Is the command aggregate not implemented?
com.mongodb.MongoCommandException: Command failed with error 59: 'no such cmd: aggregate' on server localhost:27117. The full response is { "$err" : "no such cmd: aggregate", "errmsg" : "no such cmd: aggregate", "code" : 59, "bad cmd" : { "aggregate" : "devices", "pipeline" : [{ "$match" : { } }, { "$project" : { "_id" : 1 } }, { "$group" : { "_id" : null, "ids" : { "$addToSet" : "$_id" } } }], "cursor" : { } }, "ok" : 0 }
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (11 by maintainers)
Commits related to this issue
- Simplify SumAccumulator #28 — committed to bwaldvogel/mongo-java-server by bwaldvogel 6 years ago
- Implement $avg aggregation #28 — committed to bwaldvogel/mongo-java-server by bwaldvogel 6 years ago
- Implement grouping by non-null keys #28 — committed to bwaldvogel/mongo-java-server by bwaldvogel 6 years ago
- Start implementation of expressions #28 — committed to bwaldvogel/mongo-java-server by bwaldvogel 6 years ago
- Implement $year and $dayOfYear expression #28 — committed to bwaldvogel/mongo-java-server by bwaldvogel 6 years ago
- Implement $addToSet aggregation #28 — committed to bwaldvogel/mongo-java-server by bwaldvogel 6 years ago
- Implement $project in aggregation pipeline #28 — committed to bwaldvogel/mongo-java-server by bwaldvogel 6 years ago
- Improve and more unit tests for $project #28 — committed to bwaldvogel/mongo-java-server by bwaldvogel 6 years ago
- Implement $add aggregation #28 — committed to bwaldvogel/mongo-java-server by bwaldvogel 6 years ago
- Implement $sort aggregation stage #28 — committed to bwaldvogel/mongo-java-server by bwaldvogel 6 years ago
- Add support for multiple aggregation stages of same type #28 — committed to bwaldvogel/mongo-java-server by bwaldvogel 6 years ago
- Improve $project stage #28 — committed to bwaldvogel/mongo-java-server by bwaldvogel 6 years ago
- Implement $count stage #28 — committed to bwaldvogel/mongo-java-server by bwaldvogel 6 years ago
- Implement $addFields stage #28 — committed to bwaldvogel/mongo-java-server by bwaldvogel 6 years ago
- Implement $ceil expressions #28 — committed to bwaldvogel/mongo-java-server by bwaldvogel 6 years ago
- Implement $first and $last accumulator #28 — committed to bwaldvogel/mongo-java-server by bwaldvogel 6 years ago
- Implement $objectToArray expression #28 — committed to bwaldvogel/mongo-java-server by bwaldvogel 5 years ago
I’ve started to work on an initial version of the aggregation pipeline. It currently supports simple use cases such as matching and grouping with
$sum(SumAccumulator),$min(MinAccumulator) and$max(MaxAccumulator) accumulators.Next steps could be:
$project~(ecaf59daaece55d1496a84a46e1224f5fdf05eeb), ~$sort~(21864a30172a153d02d14744483b5636293c58a0) or ~$count~(2a0e2d36e97bb8f1c2b734c3b8e2404e900ef4df)$avg~(a34e2b776f99ce5b52294ee8cf9dac5e930a9b17), ~$first~(42f2ccce3074b39517df3d68df46b5cc793f8ac4), ~$last~(42f2ccce3074b39517df3d68df46b5cc793f8ac4) or ~$addToSet~(f7095f453e0a813a4f790aef877fd3b3192e17ea)@vepo Are you interested in contributing? 😃
aggregateis not yet implemented.