[SERVER-73690] [CQF] Validate bucket count parameter to analyze Created: 06/Feb/23  Updated: 07/Feb/23

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Ben Shteinfeld Assignee: Backlog - Query Optimization
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Optimization
Participants:

 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.


Generated at Thu Feb 08 06:25:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.