[CSHARP-4863] Refactor AggregateMethodToAggregationExpressionTranslator to produce simpler translations when possible Created: 05/Dec/23 Updated: 07/Dec/23 Resolved: 07/Dec/23 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | LINQ3 |
| Affects Version/s: | None |
| Fix Version/s: | 2.23.0 |
| Type: | Improvement | Priority: | Unknown |
| Reporter: | Robert Stam | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Documentation Changes: | Not Needed | ||||||||
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
||||||||
| Description |
|
The Aggregate method translator uses $let to assign the source expression to a source variable. But when the source expression is something simple like a field name the $let can be omitted and the field used directly. |
| Comments |
| Comment by Githook User [ 07/Dec/23 ] |
|
Author: {'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}Message: |