[CSHARP-2186] Support Type Conversions in aggregation Created: 12/Feb/18  Updated: 28/Oct/23  Resolved: 10/Apr/23

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

Type: New Feature Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: GnG
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-438 Type Conversions in aggregation Closed
Epic Link: Aggregation
Documentation Changes: Not Needed
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   

The task is to support generating pipelines containing type conversion operators like the general purpose $convert and the type specific $toXyz operators in:

  1. PipelineStageDefinitionBuilder.Project
  2. LINQ Select expressions

Simple type conversions can be expressed as C# cast expressions. 

It remains to be seen how conversions with options (see $convert onError and on Null arguments) might be expressed as C# expressions.



 Comments   
Comment by Patrick Gilfether [ 10/Apr/23 ]

Fixed in LINQ 3.0

See:

https://jira.mongodb.org/browse/CSHARP-3067
https://jira.mongodb.org/browse/CSHARP-2924

Comment by Patrick Gilfether [ 10/Apr/23 ]

james.kovacs@mongodb.com I'm marking this as closed (fixed in Linq 3.0) per discussion in comments on the following related tickets:

Comment by Jeffrey Yemin [ 03/Feb/19 ]

ian@10gen.com LINQ is bonus

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