[SERVER-68222] Make arguments evaluation order consistent between built-in and instruction functions in SBE Created: 22/Jul/22  Updated: 27/Oct/23  Resolved: 19/Dec/22

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

Type: Improvement Priority: Major - P3
Reporter: Anton Korshunov Assignee: Kevin Cherkauer
Resolution: Works as Designed Votes: 0
Labels: query-offsite
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-70158 Fix undefined argument order for $ata... Closed
Assigned Teams:
Query Execution
Participants:

 Description   

Current, for built-in functions we use the right-to-left evaluation order when compiling a EFunction expression.

However, for instruction functions we use the left-to-right order.

We should consider addressing this inconsistency.



 Comments   
Comment by Kevin Cherkauer [ 19/Dec/22 ]

Thanks david.storch@mongodb.com and martin.neupauer@mongodb.com. Sounds like a case of "ain't broke, so don't fix," so I am closing this.

Generated at Thu Feb 08 06:10:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.