Skip to main content

Module stats

Module stats 

Source
Expand description

Persist Stats for non-primitive types.

For primitive types please see mz_persist_types::stats.

Structsยง

JsonVisitor ๐Ÿ”’

Functionsยง

col_values
Returns a (lower, upper) bound from the provided ColumnStatKinds, if applicable.
decode_numeric
Decodes the lower and upper bound from PrimitiveStats<Vec<u8>> as Numerics.
fixed_stats_from_column
Return the stats for a fixed-size bytes column, defaulting to an appropriate value if no values are present.
float_bounds ๐Ÿ”’
Persist computes float column bounds in IEEE-754 total order, in which negative NaNs sort below -Infinity. Datum floats compare via OrderedFloat, which ranks every NaN (of either sign) above every other value. A lower bound that is a negative NaN therefore admits both NaNs (the largest values under Datum ordering) and ordinary values up to upper, a set no Datum interval can bound, so no bounds are returned and the column is treated as unconstrained. The one exception is an upper bound that is also a negative NaN, which under total order means every value in the column is a NaN.
numeric_stats_from_column
Take the smallest / largest numeric values for a numeric col. TODO: use the float data for this instead if it becomes a performance bottleneck.
soft_expect_or_log ๐Ÿ”’
stats_for_json