[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: |
|
||||||||||||||||
| 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 |
| Comment by Robert Stam [ 04/Mar/21 ] |
|
Done but not reviewed |