-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 7.3.0-rc0
-
Component/s: Aggregation Framework
-
None
-
Query Optimization
-
Fully Compatible
-
ALL
-
-
QO 2024-01-08, QO 2024-01-22
-
114
SERVER-39336 attempts to make $mod expression output to depend only on input types. However, the patch suffers from correctness problems when one input is NumberLong another NumberDouble and NumberLong value cannot be represented as a 64-bit integer without precision loss in a 64-bit float-point number. In the BF, $mod (NumberLong("314159265358979393"), NumberDouble(58529)) results in incorrect value 31701, when the correct value is 31702.
- is caused by
-
SERVER-39336 In order to be schema friendly, $mod output should be based only on input types, not values
- Closed