From 38a7befa146a4cfd8f38180afae929ffffaca38c Mon Sep 17 00:00:00 2001 From: Linas Medziunas Date: Wed, 18 Feb 2026 15:49:23 +0200 Subject: [PATCH] Add test case with join Signed-off-by: Linas Medziunas --- promql/promqltest/testdata/native_histograms.test | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/promql/promqltest/testdata/native_histograms.test b/promql/promqltest/testdata/native_histograms.test index efa656bd63..b8e45d7980 100644 --- a/promql/promqltest/testdata/native_histograms.test +++ b/promql/promqltest/testdata/native_histograms.test @@ -2212,4 +2212,16 @@ eval instant at 1m cbh_two_buckets_split_at_negative >/ 10.0 cbh_two_buckets_split_at_negative {{schema:-53 sum:1000.0 count:100 custom_values:[-5] buckets:[0 100]}} +load 1m + cbh_for_join{label="a"} {{schema:-53 sum:33 count:101 custom_values:[5] buckets:[1 100]}} + cbh_for_join{label="b"} {{schema:-53 sum:66 count:202 custom_values:[5] buckets:[2 200]}} + cbh_for_join{label="c"} {{schema:-53 sum:99 count:303 custom_values:[5] buckets:[3 300]}} + float_for_join{label="a"} 1 + float_for_join{label="b"} 4 + +eval instant at 1m cbh_for_join >/ on (label) float_for_join + {label="a"} {{schema:-53 count:100.8 sum:502.4 custom_values:[5] buckets:[0.8 100]}} + {label="b"} {{schema:-53 count:200.4 sum:1001.8 custom_values:[5] buckets:[0.4 200]}} + + clear