From 0189081490ca2b4169b72de9fd5bf3d33ed88ee3 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 1 Nov 2023 09:52:18 +0100 Subject: [PATCH] app/vmselect/promql: typo fix, which could lead to panic during range query execution The panic is: BUG: unexpected values after merging new values This is a follow-up for 41a0fdaf39ea99708cf1c899332910965d62dcfc --- app/vmselect/promql/eval.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmselect/promql/eval.go b/app/vmselect/promql/eval.go index 9ff745b24..f0ba9dca1 100644 --- a/app/vmselect/promql/eval.go +++ b/app/vmselect/promql/eval.go @@ -1349,7 +1349,7 @@ func evalRollupFuncWithMetricExpr(qt *querytracer.Tracer, ec *EvalConfig, funcNa ecCopy := copyEvalConfig(ec) ecCopy.Start = start pointsPerSeries := 1 + (ec.End-ec.Start)/ec.Step - tss, err := evalRollupFuncNoCache(qt, ec, funcName, rf, expr, me, iafc, window, pointsPerSeries) + tss, err := evalRollupFuncNoCache(qt, ecCopy, funcName, rf, expr, me, iafc, window, pointsPerSeries) if err != nil { err = &UserReadableError{ Err: err,