@@ -38,9 +38,9 @@ use datafusion_physical_expr::expressions::col;
3838use datafusion_physical_expr:: { LexOrdering , PhysicalSortExpr } ;
3939use datafusion_physical_plan:: aggregates:: group_values:: multi_group_by:: GroupValuesColumn ;
4040use datafusion_physical_plan:: aggregates:: group_values:: { GroupValues , new_group_values} ;
41- use datafusion_physical_plan:: aggregates:: order:: GroupCompletion ;
41+ use datafusion_physical_plan:: aggregates:: order:: GroupClustering ;
4242use datafusion_physical_plan:: aggregates:: {
43- AggregateExec , AggregateMode , GroupCompletionMode , PhysicalGroupBy ,
43+ AggregateExec , AggregateMode , GroupClusteringMode , PhysicalGroupBy ,
4444} ;
4545use datafusion_physical_plan:: test:: TestMemoryExec ;
4646use datafusion_physical_plan:: { ExecutionPlan , collect} ;
@@ -112,8 +112,8 @@ fn grouping(c: &mut Criterion) {
112112 let values: Box < dyn GroupValues > = if selected {
113113 new_group_values (
114114 Arc :: clone ( & schema) ,
115- & GroupCompletion :: try_new (
116- & GroupCompletionMode :: Full ,
115+ & GroupClustering :: try_new (
116+ & GroupClusteringMode :: Full ,
117117 )
118118 . unwrap ( ) ,
119119 )
@@ -160,7 +160,7 @@ fn check_case(schema: &SchemaRef, batches: &[Vec<ArrayRef>]) -> (usize, usize) {
160160 let mut hashed = GroupValuesColumn :: < true > :: try_new ( Arc :: clone ( schema) ) . unwrap ( ) ;
161161 let mut selected = new_group_values (
162162 Arc :: clone ( schema) ,
163- & GroupCompletion :: try_new ( & GroupCompletionMode :: Full ) . unwrap ( ) ,
163+ & GroupClustering :: try_new ( & GroupClusteringMode :: Full ) . unwrap ( ) ,
164164 )
165165 . unwrap ( ) ;
166166 let mut expected = Vec :: new ( ) ;
@@ -190,7 +190,7 @@ fn aggregate_plan(
190190 schema : & SchemaRef ,
191191 keys : Vec < Vec < ArrayRef > > ,
192192 sort_columns : & [ & str ] ,
193- group_completion_mode : & GroupCompletionMode ,
193+ group_clustering_mode : & GroupClusteringMode ,
194194) -> Arc < dyn ExecutionPlan > {
195195 let mut fields = schema. fields ( ) . to_vec ( ) ;
196196 fields. push ( Arc :: new ( Field :: new ( "v" , DataType :: Int64 , false ) ) ) ;
@@ -234,7 +234,7 @@ fn aggregate_plan(
234234 schema,
235235 )
236236 . unwrap ( ) ;
237- assert_eq ! ( plan. group_completion_mode ( ) , group_completion_mode ) ;
237+ assert_eq ! ( plan. group_clustering_mode ( ) , group_clustering_mode ) ;
238238 Arc :: new ( plan)
239239}
240240
@@ -248,7 +248,7 @@ fn aggregation(c: &mut Criterion) {
248248 for run_length in [ 1 , 8 , 128 , 8192 ] {
249249 let ( schema, keys) = inputs ( run_length, 8192 , strings) ;
250250 let plan =
251- aggregate_plan ( & schema, keys, & [ "a" , "b" ] , & GroupCompletionMode :: Full ) ;
251+ aggregate_plan ( & schema, keys, & [ "a" , "b" ] , & GroupClusteringMode :: Full ) ;
252252 let name =
253253 format ! ( "{}_run{run_length}" , if strings { "string" } else { "int" } ) ;
254254 group. bench_function ( name, |b| {
@@ -293,7 +293,7 @@ fn partially_ordered_aggregation(c: &mut Criterion) {
293293 & schema,
294294 keys,
295295 & [ "a" ] ,
296- & GroupCompletionMode :: Partial ( vec ! [ 0 ] ) ,
296+ & GroupClusteringMode :: Partial ( vec ! [ 0 ] ) ,
297297 ) ;
298298 let runtime = Runtime :: new ( ) . unwrap ( ) ;
299299 let mut group = c. benchmark_group ( "partially_ordered_aggregate_exec" ) ;
0 commit comments