[COMPASS-3037] aggregation and $merge accumulator is not working Created: 30/Jul/18  Updated: 16/Aug/18  Resolved: 16/Aug/18

Status: Closed
Project: Compass
Component/s: Aggregation pipeline
Affects Version/s: None
Fix Version/s: 1.15.0

Type: Bug Priority: Major - P3
Reporter: Juan Soto (Inactive) Assignee: Durran Jordan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2018-07-30 at 13.59.47.png    
Sprint: Iteration Halloumi

 Description   

Hello, I am trying to create the following aggregation pipeline but last step is not working.

[{ $match: /** * query - The query in MQL. */
{{Unknown macro: { codigoInternoDelContratoIuc }}}
}, { $project: /** * specifications - The fields to * include or exclude. */{ "codigoInternoDelContratoIuc":1, all_buck: { $concatArrays: [ {$ifNull: ['$online', []]},'$buckets'] }} },
Unknown macro: { $unwind}
, { $group: /** * _id - The id of the group. * field1 - The first field name. */{ _id: "$all_buck.codigoRmsOperacionExtendido", mov:
Unknown macro: { $mergeObjects}
, count:{$sum:1 }]}}

For mergeObjects is expecting [ ]... I have tried different version but it is not working. The same pipeline in the shell is working fine!
Thank you i advance,

Juan



 Comments   
Comment by Githook User [ 16/Aug/18 ]

Author:

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

Message: COMPASS-3037: Bump agg pipeline to fix mergeObjects
Branch: master
https://github.com/10gen/compass/commit/3dc1a91ee0acf7c51a513a94068b5c2d301b114a

Comment by Githook User [ 16/Aug/18 ]

Author:

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

Message: COMPASS-3037: Bump agg pipeline to fix mergeObjects
Branch: COMPASS-3037
https://github.com/10gen/compass/commit/09c0f718169c57e915dc361158d4b5a6c8c1b692

Comment by Juan Soto (Inactive) [ 30/Jul/18 ]

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