Skip to main content

RootSchema

Type Alias RootSchema 

Source
pub type RootSchema = fn(&str, &NativeTree, &[Vec<String>], &str, FieldKind) -> Option<DFSchemaRef>;
Expand description

The row schema a statement root publishes for promql, or None when its columns cannot be named once.

Like OutputTags, this is the caller’s answer: a segment that publishes rows publishes exactly the columns the planner would have published for the same statement.