-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
Fully Compatible
-
QO 2023-11-27
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 SERVER-82148.
We frequently encounter expressions with comparisons to NaN because of type bracketing comparisons generated during ABT translation. For example, {a: {$gt: 5, $lt: 10}}.
- depends on
-
SERVER-82148 [CQF] Use parameter type information in constant folding optimization
- Closed
- is depended on by
-
SERVER-81958 M4. Meet Performance Targets
- Closed
-
SERVER-79622 [CQF] Improve intersectDNFIntervals behavior for variable bounds
- Open