pub fn series_frame_schema(
schema: &SeriesSchema,
labels: FrameLabelMode,
decode: Option<&LabelDecodeSpec>,
) -> Result<SchemaRef>Expand description
Builds the one frame schema family: raw or evaluated, keyed or explicit.
Everything the wire states is derived from the two things a producer actually holds. The
evaluation grid comes from schema.eval_grid, where a schema without one describes raw samples
and a schema with one describes values addressed on that grid, so content and time mode can never
contradict the columns they describe. labels decides identity, and with it whether the frame
carries the name/labels columns: a key frame keeps its labels encoded in read_key and must
declare the LabelDecodeSpec that decodes them, while an explicit frame carries complete
labels and must not declare one.
This is the only place the reserved greptime.series.* text is written, so a producer and a
reader cannot spell one frame two ways.