Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit e3b274f

Browse files
authored
[Grafana] Allow adding more than 1000 empty buckets (#1325)
I think Elastic has 65536 (2^16), so setting something similar. After this second PR, all date_histograms start looking exactly the same as from Elastic: <img width="1441" alt="Screenshot 2025-03-02 at 18 04 43" src="https://github.com/user-attachments/assets/3b174a93-66e6-410e-b0d1-c39ae19daf71" />
1 parent 4343e08 commit e3b274f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/model/bucket_aggregations/date_histogram.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const (
2626
// with date_histogram's map (it already has a "valid", processed key, after TranslateSqlResponseToJson)
2727
OriginalKeyName = "__quesma_originalKey"
2828
NoExtendedBound = int64(-1) // -1 and not e.g. 0, as 0 is a valid value
29-
maxEmptyBucketsAdded = 1000
29+
maxEmptyBucketsAdded = 100000
3030
)
3131

3232
type DateHistogram struct {

0 commit comments

Comments
 (0)