[SERVER-62526] Implement a structured way to lower ABT FunctionCall nodes to SBE expressions Created: 11/Jan/22  Updated: 17/Jan/23

Status: Open
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Drew Paroski Assignee: Backlog - Query Optimization
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-72917 Do not use $-prefixed function names ... Closed
Assigned Teams:
Query Optimization
Participants:

 Description   

See the "TODO" comment in SBEExpressionLowering::transport(). The goal of this task is to design and implement a scheme for mapping ABT functions to SBE functions.



 Comments   
Comment by Davis Haupt (Inactive) [ 17/Jan/23 ]

The TODO in the code for this ticket specifically looks at the mapping of MQL-style names (e.g. "$sum") to SBE function names (e.g. "sum"). This translation makes the most sense at the MQL->ABT translation level, and ABT FunctionCalls should almost always map directly to SBE EFunctions. Most existing function calls are not a part of M2, so SERVER-72917 will handle cleaning up the name mappings that are currently in the code, but this ticket will be moved to PM-2790 in case we want to introduce more structure as we support more agg operators in the optimizer.

 

Feel free to close this ticket if we will stick with stringly-typed functions.

Generated at Thu Feb 08 05:55:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.