[COMPASS-3330] Aggregation builder gets error from Charts aggregation pipeline Created: 29/Nov/18  Updated: 29/Oct/23  Resolved: 06/Dec/18

Status: Closed
Project: Compass
Component/s: Aggregation pipeline
Affects Version/s: 1.16.1
Fix Version/s: 1.17.0, 1.18.0

Type: Bug Priority: Major - P3
Reporter: Eric Sommer Assignee: Durran Jordan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2018-11-28 at 16.34.04.png    
Sprint: Iteration Takaioko

 Description   

Charts generated this:

[ { $match: { director: { $ne: null }, $comment: "Stitch clientAppId=mongodb-charts-srods userId=5bf16cd1cc188900aeb5af1f" } }, { $unwind: "$genres" }, { $group: { _id: { __alias_0: "$director", __alias_1: "$genres" }, __alias_2: { $sum: 1 } } }, { $project: { _id: 0, __alias_0: "$_id.__alias_0", __alias_1: "$_id.__alias_1", __alias_2: 1 } }, { $project: { x: "$__alias_0", color: "$__alias_1", y: "$__alias_2", _id: 0 } } ]

When I pasted the pipeline into Compass, it didn’t like the $comment: "Stitch clientAppId=mongodb-charts-srods userId=5bf16cd1cc188900aeb5af1f" part.

I had to remove $comment: ‘Stitch clientAppId=mongodb-charts-srods userId=5bf16cd1cc188900aeb5af1f’ to clear the error.



 Comments   
Comment by Githook User [ 06/Dec/18 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3330: Include in
Branch: master
https://github.com/10gen/compass/commit/3f63dbeb9dcb42e1c9ec171c9c3be91d31102489

Comment by Githook User [ 06/Dec/18 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3330: Include in
Branch: COMPASS-3330
https://github.com/10gen/compass/commit/84dd7f5ea3864b86395b30e1fbe5c5439e12aaf9

Comment by Eric Sommer [ 29/Nov/18 ]

Generated at Wed Feb 07 22:32:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.