-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
Fully Compatible
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
The CEhistogram contains counts of specific types (_emptyArrayCount, _trueCount, _falseCount, _nanCount) as well as the size of the collection sample that was used to build the histogram (_sampleSize).
These attributes count the number of documents out of the ones used to build the histogram satisfying their corresponding condition.
The initial implementation used double as the type used for these counters. However, all these counts are integral, thus using a floating point type may introduce errors.
Similarly, the mapĀ _typeCounts also maps specific types to doubles.
This ticket should examine the change of the types end ensure the correct error handling when building and using the histogram