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

Extend accuracy test for histogram CE to test type count supported types

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization

      Extend the accuracy test with the non-histogrammable but estimable types which are supported by type counts. This includes true, false, null, NaN, and empty array [].

      Example generated data:

      > db.coll.find()
      {a: true}
      {a: false}
      {a: null}
      {a: []}
      {a: NaN}
      

      Example intervals:

      // non-histogrammable but estimable types
      (false, true] // find({a: {$gt: false}})
      [true, true] // find({a: {$gte: true}})
      [null, null] // find({a: {$lte: null}})
      [nan.0, nan.0] // find({a: {$gte: NaN}})
      [[], []] // find({a: {$eq: []}})
      

            Assignee:
            matt.olma@mongodb.com Matt Olma
            Reporter:
            chii.huang@mongodb.com Chi-I Huang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: