diff --git a/app/vmselect/promql/aggr.go b/app/vmselect/promql/aggr.go index 2ccbbbc47..6950e2615 100644 --- a/app/vmselect/promql/aggr.go +++ b/app/vmselect/promql/aggr.go @@ -457,6 +457,7 @@ func newAggrQuantileFunc(phis []float64) func(tss []*timeseries) []*timeseries { idx := int(math.Round(float64(len(tss)-1) * phi)) dst.Values[n] = tss[idx].Values[n] } + tss[0] = dst return tss[:1] } }