[CSHARP-4806] V2.21.0 Projection issue Created: 04/Oct/23  Updated: 10/Oct/23  Resolved: 10/Oct/23

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Pierre Depretz Assignee: Robert Stam
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File MDB_Projection_Bug.txt     JPEG File V2 Result.jpg     JPEG File V3 Result.jpg    
Issue Links:
Duplicate
duplicates CSHARP-4802 Find projection of nested field does ... Closed
Case:
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

Summary

We have a customer running into a projection issue when using the C# driver v2.21.0.

He's able to workaround this issue either:

  • LinqProvider.V2
  • or LinqProvider.V3 with driver V2.20

Please provide the version of the driver.

v2.21.0

How to Reproduce

The following projection will return a NULL value using LinqProvider.V3.

Builders<ClientAccountModel>.Projection.Expression(clientAccount => clientAccount.Bank.Bsb)

A full working example is attached (MDB_Projection_Bug.txt).
Two different outputs:

  • V3 Result.jpg: return NULL
  • V2 Result.jpg: return a result


 Comments   
Comment by Pierre Depretz [ 10/Oct/23 ]

Ahhh right, thanks Robert! I'll pass this info to the customer

Comment by Robert Stam [ 10/Oct/23 ]

Thank you for reporting this issue.

I have verified that this is a duplicate of CSHARP-4802, which was fixed in version 2.22.0, which was released today.

Comment by Pierre Depretz [ 10/Oct/23 ]

Hi there,
For now, the customer decided to stick to C# driver V2.20 with LinqProvider.V3 but he's eager to know whether it could be a bug, a limitation, or a misuse of the LinqProvider provider? Could you clarify that for now?
Regards,
Pierre

Generated at Wed Feb 07 21:49:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.