pub fn get_finer_aggregate_exprs_requirement(
aggr_exprs: &mut [Arc<AggregateFunctionExpr>],
group_by: &PhysicalGroupBy,
eq_properties: &EquivalenceProperties,
agg_mode: &AggregateMode,
) -> Result<LexRequirement>
Expand description
Get the common requirement that satisfies all the aggregate expressions.
§Parameters
aggr_exprs
: A slice ofAggregateFunctionExpr
containing all the aggregate expressions.group_by
: A reference to aPhysicalGroupBy
instance representing the physical GROUP BY expression.eq_properties
: A reference to anEquivalenceProperties
instance representing equivalence properties for ordering.agg_mode
: A reference to anAggregateMode
instance representing the mode of aggregation.
§Returns
A LexRequirement
instance, which is the requirement that satisfies all the
aggregate requirements. Returns an error in case of conflicting requirements.