[SERVER-80870] [CQF] Improvements to If constant folding Created: 07/Sep/23 Updated: 29/Oct/23 Resolved: 13/Sep/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.2.0-rc0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Svilen Mihaylov (Inactive) | Assignee: | Svilen Mihaylov (Inactive) |
| 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 |
|
Perform the following foldings:
1. If (expression) ? true : false -> (expression) 2. if (expression) ? false : true -> NOT (expression) 3. if (expr1) ? true true -> true 4. if (expr1) ? false : false -> false 5. if (not (expr1)) ? expr2 : expr3 -> if (expr1) ? expr3 : expr2. |
| Comments |
| Comment by Githook User [ 13/Sep/23 ] |
|
Author: {'name': 'Svilen Mihaylov', 'email': 'svilen.mihaylov@mongodb.com', 'username': 'svilen-mihaylov'}Message: |