[SERVER-83147] [CQF] Support constant folding of NaN comparisons to query parameters Created: 10/Nov/23 Updated: 27/Nov/23 Resolved: 21/Nov/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.3.0-rc0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Ben Shteinfeld | Assignee: | Lynne Wang |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Assigned Teams: |
Query Optimization
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Sprint: | QO 2023-11-27 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Since we know that we will never parameterize NaN constants, when we encounter a comparison between a parameter and NaN, we should be able to take advantage of the type of the parameter to constant fold the expression. This is follow up work to We frequently encounter expressions with comparisons to NaN because of type bracketing comparisons generated during ABT translation. For example, {a: {$gt: 5, $lt: 10}}. |
| Comments |
| Comment by Githook User [ 21/Nov/23 ] |
|
Author: {'name': 'Lynne Wang', 'email': 'lynne.wang@mongodb.com', 'username': 'lynne-wang'}Message: |