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

[CQF] Validate bucket count parameter to analyze

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Optimization

    Description

      SERVER-72997 made it so that the maxdiff algorithm could produce valid histograms where the number of buckets is the number of types + 1 (or equal to in the case the first type/bucket having a single value). As pointed out in review, we should include a guardrail for user invocations of the analyze command which asserts the given number of buckets is large enough, before we begin constructing the histogram.

      This likely needs to happen in the implementation of the generateStats accumulator.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: