Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-96689

Examine the types of class CEHistogram attributes, to represent correctly their contents and improve error handling

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • 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

            Assignee:
            matt.olma@mongodb.com Matt Olma
            Reporter:
            matt.olma@mongodb.com Matt Olma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: