#[non_exhaustive]pub enum AggregateValue {
Count(u64),
Sum(f64),
Avg(Option<f64>),
Min(Option<f64>),
Max(Option<f64>),
DistinctCount(u64),
Percentile(Option<f64>),
}Expand description
Computed aggregate value. Phase E-1 shipped Count; Phase
E-3 adds Sum and Avg; sketches (DistinctCount,
Percentile) land in Phase E-4.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Count(u64)
Row count within the group.
Sum(f64)
Sum of a numeric field across rows in the group. Rows
whose field is missing / non-numeric contribute 0.0.
Avg(Option<f64>)
Arithmetic mean of a numeric field across rows in the
group. Rows whose field is missing / non-numeric are
excluded from both numerator and denominator (so a
group with no numeric rows yields a group with an
empty Avg — surfaced via the Avg(None) variant).
Min(Option<f64>)
Minimum of a numeric field across rows in the group.
None when the group has no numeric rows.
Max(Option<f64>)
Maximum of a numeric field across rows in the group.
None when the group has no numeric rows.
DistinctCount(u64)
Exact distinct count over a row-intrinsic / JSON field.
Counts distinct string projections of the leaf value
(since f64 doesn’t have Eq, we project numerics to
their canonical string form). Rows whose field is
missing are skipped.
Percentile(Option<f64>)
Nearest-rank exact percentile over a numeric field.
None when the group has no numeric rows.
Trait Implementations§
Source§impl Clone for AggregateValue
impl Clone for AggregateValue
Source§fn clone(&self) -> AggregateValue
fn clone(&self) -> AggregateValue
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more