diff --git a/app/vmselect/promql/eval.go b/app/vmselect/promql/eval.go index dd32bf28f1..d8d78040d3 100644 --- a/app/vmselect/promql/eval.go +++ b/app/vmselect/promql/eval.go @@ -435,7 +435,7 @@ func evalRollupFunc(ec *EvalConfig, name string, rf rollupFunc, expr metricsql.E ecNew.End = end } } - if name == "rollup_candlestick" && len(re.Window) == 0 { + if name == "rollup_candlestick" { // Automatically apply `offset -step` to `rollup_candlestick` function // in order to obtain expected OHLC results. // See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/309#issuecomment-582113462