fn info_reference(
stmt: &EvalStmt,
expr: &Expr,
) -> Result<(Option<AtModifier>, i64)>Expand description
The @ anchor and offset the info series are selected at: those of the first selector of
expr when every vector-producing path of it reaches a selector with the same effective
reference time, and none otherwise, as Prometheus infoSeriesSelectTimestampAndOffset decides.
A selector inside subqueries adds their offsets until one of them anchors it with @. A path
that produces a vector without a selector, such as vector(1), is evaluated at the step itself,
so it leaves no shared reference.