[CSHARP-1292] Grouping requires Sort to work correctly Created: 22/May/15 Updated: 05/Apr/16 Resolved: 17/Jun/15 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | API |
| Affects Version/s: | 2.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Dmitry Kuznetsov [X] | Assignee: | Craig Wilson |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
c# VS2013 Local mongodb |
||
| Description |
|
Given class hierarchy
Given class mappings
When I do the groupping Sort is required in pipeline before the Group or groupping produces wrong results
Expected: Sort not required to do the Group Notes: I'm 99% sure First statement works here as expected. |
| Comments |
| Comment by Craig Wilson [ 22/May/15 ] |
|
Hi Dmitry, Thank you for opening a separate ticket for this. As I mentioned in the other ticket, You cannot use First with a predicate inside a grouping statement. MongoDB does not support that feature. An exception should be thrown ( Craig |