Skip to main content

field_column

Function field_column 

Source
fn field_column(samples: &Samples, kind: FieldKind) -> Result<ArrayRef>
Expand description

Converts one evaluated series field into the column kind names.

Dense float samples are reused as they are: the array already carries exactly the right nulls and keeps NaN a value, so copying it through Samples::iter() would only cost an allocation and a re-encode. Histograms are gathered into the canonical struct column, one payload per row and null where the grid point has no sample.