[SERVER-78085] [CQF] Constant folding for "isArray" Created: 14/Jun/23  Updated: 29/Oct/23  Resolved: 21/Aug/23

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

Type: Improvement Priority: Major - P3
Reporter: Svilen Mihaylov (Inactive) Assignee: Jacob Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Optimization
Backwards Compatibility: Fully Compatible
Participants:

 Description   

In const_eval.cpp implement constant folding for FunctionCall("isArray").

 

Check if the argument to the function (it has only one) is a Constant. If so, check if the tag is Array or Array set, if so call swapAndUpdate with Constant::true otherwise swapAndUpdate with Constant::false



 Comments   
Comment by Githook User [ 21/Aug/23 ]

Author:

{'name': 'Jacob Evans', 'email': 'jacob.evans@mongodb.com', 'username': ''}

Message: SERVER-78085 Constant folding for 'isArray'
Branch: master
https://github.com/mongodb/mongo/commit/60f9eed9f7a2b2d8bfe25fd699ad6e232702b949

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