Skip to main content

aggregate_output_kind

Function aggregate_output_kind 

Source
pub fn aggregate_output_kind(op: &BoundAggregate) -> FieldKind
Expand description

The kind an aggregate’s own output column carries.

It follows the state the aggregate keeps rather than the samples it read, because the two can differ in both directions: count over a histogram answers a float, and so does every aggregate that skips histogram samples, while sum/avg over a histogram answer the histogram they folded.