[SERVER-37459] $group with $$ROOT returns error Created: 03/Oct/18 Updated: 29/Oct/23 Resolved: 09/Oct/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Robert Stam | Assignee: | Ian Boros |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Steps To Reproduce: | Repro usingĀ 4.1.3-231-ga106c80c19:
|
||||||||||||||||||||
| Sprint: | Query 2018-10-22 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
$group with $$ROOT starting failing recently when running the C# driver tests. Not sure when exactly it started failing, but it can be reproduced usingĀ 4.1.3-231-ga106c80c19. Here's a repro showing it working in 4.0.2:
|
| Comments |
| Comment by Githook User [ 09/Oct/18 ] |
|
Author: {'name': 'Ian Boros', 'email': 'ian.boros@10gen.com'}Message: |
| Comment by David Storch [ 03/Oct/18 ] |
|
Thanks rstam! I believe this is a regression due to the changes for |
| Comment by Robert Stam [ 03/Oct/18 ] |
|
I realize that this particular use of $group is a bit odd since all the documents (and therefore $$ROOT) will already be unique by virtue of the _id being unique. This query was generated by the C# driver as part of a LINQ test. Even if it seems a bit odd, it still should work (as it did in 4.0.2). |