diff --git a/promql/engine.go b/promql/engine.go index 44985e50f9..3e14a2529d 100644 --- a/promql/engine.go +++ b/promql/engine.go @@ -2357,6 +2357,11 @@ func (ev *evaluator) matrixIterSlice( } } + if mint == maxt { + // Empty range: return the empty slices. + return floats, histograms + } + soughtValueType := it.Seek(maxt) if soughtValueType == chunkenc.ValNone { if it.Err() != nil {