[CSHARP-4048] "Take" doesn't work with GroupBy. Created: 11/Feb/22 Updated: 28/Oct/23 Resolved: 24/Mar/22 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | LINQ3 |
| Affects Version/s: | 2.14.0 |
| Fix Version/s: | 2.15.1 |
| Type: | Bug | Priority: | Unknown |
| Reporter: | Baris Saydag | Assignee: | Robert Stam |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | CSHARP-3615 |
| Description |
|
In V3, this LINQ query: Collection Generates: [{ "$group" : { "_id" : "$Field" }}, { "$project" : { "Key" : "$_id", "Take" : { "$slice" : ["$$ROOT", 6] }, "_id" : 0 } }] But fails with: Command aggregate failed: First argument to $slice must be an array, but is of type: object. |
| Comments |
| Comment by Githook User [ 04/May/22 ] |
|
Author: {'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}Message: |
| Comment by Githook User [ 04/May/22 ] |
|
Author: {'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}Message: |
| Comment by Githook User [ 24/Mar/22 ] |
|
Author: {'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}Message: |
| Comment by Githook User [ 24/Mar/22 ] |
|
Author: {'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}Message: |
| Comment by Dmitry Lukyanov (Inactive) [ 11/Feb/22 ] |
|
Hello baris@saydag.com , thanks for the report, we will investigate it and come back to you. |