[SERVER-6181] attempt to $project a computed _id field results in a document with two duplicate (wrong) _id values Created: 22/Jun/12 Updated: 11/Jul/16 Resolved: 20/Jul/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | 2.2.0-rc1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Aaron Staple | Assignee: | Mathias Stearn |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
Observed behavior: Projecting to the _id field causes two _id fields to be written to the result document, both of which have source _id value not the computed _id value. Test:
Result:
|
| Comments |
| Comment by auto [ 20/Jul/12 ] |
|
Author: {u'date': u'2012-07-14T12:04:12-07:00', u'email': u'mathias@10gen.com', u'name': u'Mathias Stearn'}Message: Rewrite ExpressionObject The main difference between this version and the old is that the following // classic inclusion // nested inclusion {'a.b': '$a.b'} // dotted FieldPathExpression // nested FieldPathExpression Additionally support for exclusion of fields other than _id has been Other related bugs:
Remaining TODOs: Disabled test for |