[SERVER-23099] Always propagate cursor output sort to aggregation. Created: 11/Mar/16  Updated: 16/May/16  Resolved: 26/Apr/16

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 3.3.6

Type: Improvement Priority: Major - P3
Reporter: Benjamin Murphy Assignee: Benjamin Murphy
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-23436 ProjectionNode::getSort() does not pr... Closed
is depended on by SERVER-23318 Streaming $group does not handle null... Closed
is depended on by SERVER-23477 Aggregation's streaming $group should... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 12 (04/04/16), Query 13 (04/22/16), Query 14 (05/13/16)
Participants:

 Description   

SERVER-4507 introduces DocumentSource::getOutputSorts(), which allows a DocumentSource to output a set of sort keys that its output is sorted on. At the moment, DocumentSourceCursor (and thus the query subsystem) does not always produce a sort, even if the output is sorted. This is a result of the fact that a PlanExecutor does not always have access to a QuerySolution for a query.



 Comments   
Comment by Githook User [ 26/Apr/16 ]

Author:

{u'username': u'benjaminmurphy', u'name': u'Benjamin Murphy', u'email': u'benjamin_murphy@me.com'}

Message: SERVER-23099 DocumentSourceCursor always retrieves output sort from PlanExecutor.
Branch: master
https://github.com/mongodb/mongo/commit/bfc1cf3a390099be0c031d2533aa5d090fc0acd6

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