[SERVER-11833] Projected field order different under new query framework Created: 22/Nov/13 Updated: 09/Jul/16 Resolved: 23/Nov/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mathias Stearn | Assignee: | hari.khalsa@10gen.com |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Minor Change | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
It used to be based on document field order, but is now based on the order in the projection spec.
|
| Comments |
| Comment by Githook User [ 26/Nov/13 ] |
|
Author: {u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: Needed to make tests pass with agg on top of new query framework. The order of fields returned by |
| Comment by Eliot Horowitz (Inactive) [ 23/Nov/13 ] |
|
New behavior is good, but needs to be documented as such. |
| Comment by Andy Schwerin [ 22/Nov/13 ] |
|
Order in the projection spec makes sense to me – I'm describing the document I want produced. |
| Comment by Mathias Stearn [ 22/Nov/13 ] |
|
Correct. |
| Comment by hari.khalsa@10gen.com [ 22/Nov/13 ] |
|
If the projection is covered, we don't know the doc order. Unless I'm missing something, we only talk about the projected field order as dependent on the doc order if the projection is NOT covered... |