[CSHARP-4181] Max inside the lamda expression MQL translation is wrong Created: 23/May/22 Updated: 28/Oct/23 Resolved: 26/May/22 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.14.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sudhesh Gnanasekaran | Assignee: | Robert Stam |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
| Comments |
| Comment by Sudhesh Gnanasekaran [ 27/May/22 ] | |||||||
|
Hi Robert, Will there be any problem to use the linq3 settings because our codebase is already in production with the mongo 4.4 and c# driver version 2.13?
Regards, Sudhesh | |||||||
| Comment by Robert Stam [ 26/May/22 ] | |||||||
|
This issue has been fixed in the new LINQ provider (known as LINQ3), which is included in the 2.14 release. Configure your MongoClientSettings to use LinqProvider.V3 if you want to use this functionality. To configure a client to use the LINQ3 provider use code like the following
I have confirmed that LINQ3 generates the following query for the supplied LINQ expression:
| |||||||
| Comment by Sudhesh Gnanasekaran [ 25/May/22 ] | |||||||
|
I updated the wrong translated query and this is the expected translation.
|