[CSHARP-3872] LINQ3: Move some simplifications from Render methods to new AstSimplifier class Created: 21/Sep/21  Updated: 28/Oct/23  Resolved: 04/Oct/21

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

Type: Task Priority: Unknown
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CSHARP-3590 LINQ3: Implement AstPipelineOptimizer Closed
Epic Link: CSHARP-2608

 Description   

The following simplifications currently being done in Render methods should be done by rewriting the AST tree in a new AstSimplifier class:

  • replace $getField with field path expression or $let when possible
  • replace $map/$getField with $getField
  • replace $first and $last with $arrayElemAt

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