pub fn reduce(dataset: &DataSet, column: &str, op: ReduceOp) -> Option<Value>Expand description
Reduce a column using a built-in ReduceOp.
- Returns
Noneifcolumndoes not exist in the schema. - For
Count, always returnsSome(Value::Int64(row_count)). - For numeric aggregates other than
Count/CountDistinctNonNull, returnsSome(Value::Null)if there are no non-null numeric values, or if the column type is not numeric (for those ops).CountDistinctNonNullsupportsDataType::BoolandDataType::Utf8as well as numeric types.