[SERVER-25757] Create aggregation passthrough that wraps each pipeline within a $facet stage Created: 23/Aug/16  Updated: 19/Nov/16  Resolved: 12/Sep/16

Status: Closed
Project: Core Server
Component/s: Aggregation Framework, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.3.14

Type: Task Priority: Major - P3
Reporter: Charlie Swanson Assignee: Charlie Swanson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Sprint: Query 2016-08-29, Query 2016-09-19
Participants:

 Description   

Any pipeline originalPipeline is logically equivalent to running the following pipeline:

[{$facet: {results: <originalPipeline>}}, {$unwind: '$results'}, {$replaceRoot: {newRoot: '$results'}}]

We should add a passthrough suite which does this transformation to each pipeline to increase test coverage of the $facet stage.



 Comments   
Comment by Githook User [ 12/Sep/16 ]

Author:

{u'username': u'cswanson310', u'name': u'Charlie Swanson', u'email': u'cswanson310@gmail.com'}

Message: SERVER-25757 Add a $facet passthrough aggregation suite.
Branch: master
https://github.com/mongodb/mongo/commit/07e0d1ef934e54dc2d1df54b6f97a521b212b87d

Generated at Thu Feb 08 04:10:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.