From a801e873cfc2798a8fc3526d810dc52127ec0d41 Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Thu, 9 Apr 2026 06:40:27 +0800 Subject: [PATCH] adjust comments Signed-off-by: Ruihang Xia --- src/promql/src/functions/extrapolate_rate.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/promql/src/functions/extrapolate_rate.rs b/src/promql/src/functions/extrapolate_rate.rs index a084fe480f..726218de0f 100644 --- a/src/promql/src/functions/extrapolate_rate.rs +++ b/src/promql/src/functions/extrapolate_rate.rs @@ -129,7 +129,7 @@ impl ExtrapolatedRate DfResult { if input.len() != 4 { return Err(DataFusionError::Plan( @@ -214,6 +214,9 @@ impl ExtrapolatedRate ExtrapolatedRate 0.0 && first_value >= 0.0 { let duration_to_zero = sampled_interval_ms * (first_value / result_value); if duration_to_zero < duration_to_start_ms { @@ -256,6 +261,8 @@ impl ExtrapolatedRate