prometheus/promql
beorn7 106e20cde5 Histogram: Fix and simplify histogram_quantile
For conventional histograms, we need to gather all the individual
bucket timeseries at a data point to do the quantile calculation. The
code so far mirrored this behavior for the new native
histograms. However, since a single data point contains all the
buckets alreade, that's actually not needed. This PR simplifies the
code while still detecting a mix of conventional and native
histograms.

The weird signature calculation for the conventional histograms is
getting even weirder because of that. If this PR turns out to do the
right thing, I will implement a proper fix for the signature
calculation upstream.

Signed-off-by: beorn7 <beorn@grafana.com>
2022-04-11 20:53:57 +02:00
..
fuzz-data textparse: Add fuzzing and fix bug caught 2017-07-07 11:12:17 +02:00
parser Run gofumpt on all files (#10392) 2022-03-03 17:21:05 +01:00
testdata address comment 2022-02-15 22:09:17 +08:00
bench_test.go Track and report Samples Queried per query 2022-03-21 23:49:17 +01:00
engine.go Histogram: Fix and simplify histogram_quantile 2022-04-11 20:53:57 +02:00
engine_test.go Merge branch 'main' into sparsehistogram 2022-03-22 14:47:42 +01:00
functions.go Histogram: Fix and simplify histogram_quantile 2022-04-11 20:53:57 +02:00
functions_test.go Avoid literal integer overflows in 32 bit arches. 2022-03-29 22:51:20 +02:00
fuzz.go error for invalid media type should not be completely swallowed (#10186) 2022-02-08 10:57:56 +01:00
fuzz_test.go error for invalid media type should not be completely swallowed (#10186) 2022-02-08 10:57:56 +01:00
promql_test.go add doc 2022-02-13 21:59:03 +08:00
quantile.go Histogram: Fix and simplify histogram_quantile 2022-04-11 20:53:57 +02:00
query_logger.go Improve error logging for missing config and QL dir (#10260) 2022-02-16 17:43:15 +01:00
query_logger_test.go Switch to grafana/regexp everywhere (#10268) 2022-02-13 00:58:27 +01:00
test.go Track and report Samples Queried per query 2022-03-21 23:49:17 +01:00
test_test.go tsdb: Rework iterators (#9877) 2021-11-29 13:24:23 +05:30
value.go Merge branch 'main' into beorn7/merge2 2021-11-30 17:19:06 +01:00