Skip to main content

min_max

Function min_max 

Source
pub fn min_max(
    array: &ArrayRef,
    ctx: &mut ExecutionCtx,
    options: NumericalAggregateOpts,
) -> VortexResult<Option<MinMaxResult>>
Expand description

The minimum and maximum non-null values of an array, or None if there are no non-null values.

NaN handling for float inputs is controlled by NumericalAggregateOpts: with skip_nans (the default) NaN values are ignored and the cached Stat::Min/Stat::Max statistics are consulted and updated. With skip_nans=false, any NaN value in a float array poisons both extrema to NaN; an exact Stat::NaNCount statistic shortcircuits the NaN scan in either direction.

The result scalars have the non-nullable version of the array dtype. This will update the stats set of the array as a side effect.