[CSHARP-3447] LINQ3: Refactor support for IndexOfAny to use $expr instead of regular expressions Created: 04/Mar/21  Updated: 23/Nov/21  Resolved: 30/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
Epic Link: CSHARP-2608

 Description   

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

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



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

We have decided that we should translate to regular expressions after all.

 

Comment by Robert Stam [ 09/Mar/21 ]

Done but not reviewed

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