pub fn new_group_values(
schema: Arc<Schema>,
group_ordering: &GroupOrdering,
) -> Result<Box<dyn GroupValues>, DataFusionError>Expand description
Return a specialized implementation of GroupValues for the given schema.
GroupValues implementations choosing logic:
-
If group by single column, and type of this column has the specific
GroupValuesimplementation, such implementation will be chosen. -
If group by multiple columns, and all column types have the specific
GroupColumnimplementations,GroupValuesColumnwill be chosen. -
Otherwise, the general implementation
GroupValuesRowswill be chosen.
GroupColumn: crate::aggregates::group_values::multi_group_by::GroupColumn
GroupValuesColumn: crate::aggregates::group_values::multi_group_by::GroupValuesColumn
GroupValuesRows: crate::aggregates::group_values::row::GroupValuesRows