-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
Fully Compatible
-
ALL
-
-
QE 2024-03-18, QE 2024-04-01
-
152
cellFoldValues_F assumes that the input block will have only boolean values or Nothing. However, it is possible to call cellFoldValues_F with values of other type.
We should add a CoerceToBool before we call cellFoldValues_F to make sure that we get the correct results.
After discussion with alberto.massari@mongodb.com adding CoerceToBool by default will result in producing wrong results. cellFoldValues_F should produce the same results as traverseF which returns true for an array by ORing the results of each array element. The result of each array element is computed applying a lambda function on it. When the function returns a boolean true value the results for the array element is true. In all other cases the result of the array element is false.
- depends on
-
SERVER-87570 Always fold the input of valueBlockLogicalAnd and all arguments of methods that use a bitmap
- Closed