[CSHARP-4956] ExpressionNotSupported Exception after updating to 2.19 Created: 06/Feb/24 Updated: 07/Feb/24 Resolved: 06/Feb/24 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Unknown |
| Reporter: | Ilya Chernomordik | Assignee: | Robert Stam |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Dotnet Drivers
|
||||||||
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
||||||||
| Comments |
| Comment by Ilya Chernomordik [ 07/Feb/24 ] |
|
I have checked the suggested solution and it would not quite work for me. The reason I had the projection is that the data is quite large and querying it all would be very inefficient. So what I really need is kind of a "path" to the data that I would like to query and a return type that this "path" should be converted to. It does work like that for filter/update queries (though there is no casting to a type of a response), but I did not find any way to do it for find. Is there some workaround for that? I do not really need any "projection" like a function call, but just specifying a "path" that happens to be specified using polymorphism hence the need for "projection". |
| Comment by Ilya Chernomordik [ 07/Feb/24 ] |
|
Thank you, I will take a look. May I suggest to do a major update of the package (in semver sense) since it was not very clear what has broken and why (and especially in which version) since it was really just a minor update. |
| Comment by Robert Stam [ 06/Feb/24 ] |
|
The behavior of client side projections changed in LINQ3. This was a deliberate choice we made, although we are considering supporting client side projections in LINQ3 also. In the meantime, please look at the technique suggested in CSHARP-4763 on how to do explicit client side projections when using LINQ3.
|
| Comment by Ilya Chernomordik [ 06/Feb/24 ] |
|
I did not manage to create a description somehow, so I will just post a reference to a forum post that I have created earlier
|
| Comment by PM Bot [ 06/Feb/24 ] |
|
Hi ilya.chernomordik@scaleaq.com, thank you for reporting this issue! The team will look into it and get back to you soon. |