fn merge_single_field(
fields: Vec<Results>,
schema: Arc<SeriesSchema>,
budget: Option<&mut Budget<'_>>,
) -> Result<Vec<Series>>Expand description
The one-field shape’s merge: the label set’s rows written out as they are read.
A merge of one field has nothing to merge. The field filed each label set’s rows already sorted
by point and already proven to hold one row per point – the field’s own sort reports two rows at
one point as an error, which is reported before the merge runs – so the series is its rows: no
triples table, no sort and no row buffer, one single-value row per kept sample. A sample the
operator filtered (None) writes no row, exactly as in merge_multi_field, and a label set
whose samples were all filtered finishes as no series at all.
The rows it keeps are charged the figure merge_multi_field charges for the same samples, so
the two merges bill a one-field result the same. The order the series are handed out in is not
guaranteed – label sets are read from a hash map, as in merge_multi_field – so no result is
defined by it.