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

[CQF] Allow histograms with number of buckets equal to number of types

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • ALL
    • QO 2023-02-06, QO 2023-02-20

      array_histogram_test.cpp has a commented-out test with a repro for this problem. A histogram which we should be able to build with 5 buckets for 5 types hits an assertion on histogram creation:

      {"t":{"$date":"2023-01-18T16:25:23.982Z"},"s":"I",  "c":"TEST",     "id":4680100, "ctx":"main","msg":"FAIL","attr":{"test":"BSONEdgeValues","type":"DBException","error":"Location6660504: Must have bucket boundary on first value","extra":""}}

            Assignee:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: