@@ -42,10 +42,8 @@ use crate::expressions::Column;
4242
4343use arrow:: datatypes:: { DataType , Field , Schema , SchemaRef } ;
4444use arrow_schema:: SortOptions ;
45- use datafusion_common:: ScalarValue ;
46- use datafusion_common:: { internal_err, not_impl_err, Result } ;
47- use datafusion_expr:: ReversedUDAF ;
48- use datafusion_expr:: { AggregateExprSetMonotonicity , AggregateUDF } ;
45+ use datafusion_common:: { internal_err, not_impl_err, ScalarValue , Result } ;
46+ use datafusion_expr:: { AggregateExprSetMonotonicity , AggregateUDF , ReversedUDAF } ;
4947use datafusion_expr_common:: accumulator:: Accumulator ;
5048use datafusion_expr_common:: groups_accumulator:: GroupsAccumulator ;
5149use datafusion_expr_common:: type_coercion:: aggregates:: check_arg_count;
@@ -547,7 +545,7 @@ impl AggregateFunctionExpr {
547545 self . fun . inner ( ) . set_monotonicity ( data_type)
548546 }
549547
550- /// Returns PhysicalSortExpr based on monotonicity of the function
548+ /// Returns ` PhysicalSortExpr` based on the set monotonicity of the function.
551549 pub fn get_result_ordering ( & self , aggr_func_idx : usize ) -> Option < PhysicalSortExpr > {
552550 // If the aggregate expressions are set-monotonic, the output data is
553551 // naturally ordered with it per group or partition.
0 commit comments