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

XMLWordPrintableJSON

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

      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
              Reporter:
              Ben Shteinfeld
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: