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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: 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
    • None

      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
              Reporter:
              Chi-I Huang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: