(expr: Expr, offset: Duration)
| 413 | } |
| 414 | |
| 415 | fn apply_offset(expr: Expr, offset: Duration) -> Expr { |
| 416 | match expr { |
| 417 | Expr::VectorSelector { name, matchers, .. } => Expr::VectorSelector { |
| 418 | name, |
| 419 | matchers, |
| 420 | offset: Some(offset), |
| 421 | }, |
| 422 | other => other, |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | fn parse_agg_op(name: &str) -> Option<AggOp> { |
| 427 | match name.to_ascii_lowercase().as_str() { |