Skip to main content

is_sourced_plan

Function is_sourced_plan 

Source
fn is_sourced_plan(plan: &LogicalPlan) -> bool
Expand description

Whether plan already answers raw series frames of its own.

A selector naming no metric is prepared as one RawSeriesSource per discovered metric, or as the Union of them when it discovered several, and each source names the metric it reads. So such a plan is a frame producer in its own right: a segment hands it to the node it builds instead of binding it again. Binding it again nests a source in a source, and the physical planner reads a source’s child as the region scan that source binds - a union is no such child either - so the nested input is refused after the statement has already been committed to this route.