fn output_field_names(
output_schema: &SchemaRef,
series_fields: &[FieldSpec],
promql: &str,
) -> Vec<String>Expand description
Names the fields in a row schema, in series_fields order.
A caller names a value column either after the expression that produced it or after the tree’s
field, so the typed value columns are what decide which: the expression names are used only
when they name exactly those columns, and the field names when those do. Deciding by type keeps
a tag that shares a field’s name from being read as that field. The result stays in
series_fields order because a name is bound back to its field by that index, so a reordered
output still reads every column from its own field.