Skip to main content

empty_discovered_input

Function empty_discovered_input 

Source
fn empty_discovered_input(
    time_index: String,
) -> Result<(LogicalPlan, Arc<SeriesSchema>, Option<Arc<str>>, String, Vec<String>, bool, bool)>
Expand description

The typed empty input of a discovered selector that matched no metric table.

No table matched, so there is no scan and no metric name: the input is an empty raw series frame, the one input a [FusedSeries] node already reads. It is bound to a schema of one field and no grid because that is the layout this route compiles a selector against; the planner re-lays it out in the schema of the set operation it takes part in. No row is ever read, so a surviving name decides only what an operator answering on its own - absent - calls its value column.

The empty plan declares the frame a scan would declare, so physical planning reads it as the frame producer it is, with explicit labels rather than a scan’s storage key.