From b8d951a243585c0c0333aa3c69ad539398fa7a01 Mon Sep 17 00:00:00 2001 From: hagen1778 Date: Mon, 24 Jun 2024 13:15:00 +0200 Subject: [PATCH] wip Signed-off-by: hagen1778 --- app/vmselect/promql/transform.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/vmselect/promql/transform.go b/app/vmselect/promql/transform.go index 3a2af143f..6f558f634 100644 --- a/app/vmselect/promql/transform.go +++ b/app/vmselect/promql/transform.go @@ -1241,19 +1241,6 @@ func fixBrokenBuckets2(i int, xss []leTimeseries) { v = vNext } } - return - - // Substitute lower bucket values with upper values if the lower values are NaN - // or are bigger than the upper bucket values. - vNext := xss[len(xss)-1].ts.Values[i] - for j := len(xss) - 2; j >= 0; j-- { - v := xss[j].ts.Values[i] - if math.IsNaN(v) || v > vNext { - xss[j].ts.Values[i] = vNext - } else { - vNext = v - } - } } func mergeSameLE(xss []leTimeseries) []leTimeseries {