pub(crate) fn subquery_child_grid(
stmt: &EvalStmt,
outer: &EvalGrid,
subquery: &SubqueryExpr,
) -> Result<Option<SubqueryGrid>>Expand description
Derives the SubqueryGrid of subquery, whose outer statement is evaluated on outer.
The child grid is one point per step over the interval the subquery’s window reads, which its
@ anchor, offset and range decide; without an anchor it is the statement’s own range. Every
number is converted checked, so a range or a step too large to name a millisecond is reported as
itself rather than wrapped into a different interval.
None when the anchored interval contains no step boundary, which names no evaluation point at
all. Declining is the caller’s decision: the compiler reports the shape it cannot fold, while the
planner keeps the plan the existing path builds.