Skip to main content

merge_fields

Function merge_fields 

Source
fn merge_fields(
    fields: Vec<Results>,
    schema: Arc<SeriesSchema>,
    budget: Option<&mut Budget<'_>>,
) -> Result<Vec<Series>>
Expand description

Joins the per-field results into series with all fields, by label set.

The merge is one phase, entered from the results the fields filed: the triples it groups, the table it groups them in and the builder’s own buffers. Its columns are reserved once per result series, before the series pushes its first row, rather than once per row.

The phase figure is entered here, before either merge runs, so both are charged the same bytes and neither can allocate before it is admitted.