[CSHARP-3445] LINQ3: Refactor support for StartsWith/Contains/EndsWith to use $expr instead of regular expressions Created: 04/Mar/21  Updated: 23/Nov/21  Resolved: 25/Mar/21

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

Type: Task Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CSHARP-3404 LINQ3: Get LegacyPredicateTranslatorT... Closed
Related
is related to CSHARP-3501 LINQ3: Refactor string StartsWith/Con... Closed
Epic Link: CSHARP-2608

 Description   

Now that the server supports $expr in filters we can translate StartsWith/Contains/EndsWith using aggregation operators instead of regular expressions.

While the resulting translations are somewhat longer than the regular expressions they replace, they are rather direct mappings from C# to MQL and should therefore be easier to understand and less bug prone.



 Comments   
Comment by Robert Stam [ 25/Mar/21 ]

We now have decided to use regular expressions after all. See CSHARP-3501.

Comment by Robert Stam [ 04/Mar/21 ]

Done but not reviewed

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