[CSHARP-1974] Count Expression in Aggregation Definition silently does the wrong thing Created: 02/May/17 Updated: 28/Oct/23 Resolved: 15/Jan/19 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Linq |
| Affects Version/s: | 2.4.3 |
| Fix Version/s: | 2.8.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kirill Rakhman | Assignee: | Dmitry Lukyanov (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Minor Change |
| Description |
|
Consider the following aggregation defintion
This code compiles and runs but does the wrong thing. Instead of counting the documents with the condition
it counts all the documents. The workaround is to write
which does the correct thing. |
| Comments |
| Comment by Githook User [ 15/Jan/19 ] |
|
Author: {'username': 'dmitry-lukyanov', 'email': 'dmitry_lukyanov@epam.com', 'name': 'Dmitry Lukyanov'}Message: |