[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: |