@@ -31,7 +31,7 @@ use crate::filter_pushdown::{
3131 FilterPushdownPropagation , PushedDownPredicate ,
3232} ;
3333use crate :: metrics:: { ExecutionPlanMetricsSet , MetricsSet } ;
34- use crate :: statistics_context :: StatisticsArgs ;
34+ use crate :: statistics :: StatisticsArgs ;
3535use crate :: {
3636 DisplayFormatType , Distribution , ExecutionPlan , InputOrderMode ,
3737 SendableRecordBatchStream , Statistics , check_if_same_properties,
@@ -1615,7 +1615,7 @@ impl ExecutionPlan for AggregateExec {
16151615
16161616 fn statistics_with_args ( & self , args : & StatisticsArgs ) -> Result < Arc < Statistics > > {
16171617 let child_statistics =
1618- args. compute_child_statistics ( self . input . as_ref ( ) , args. partition ( ) ) ?;
1618+ args. compute_child_statistics ( & self . input , args. partition ( ) ) ?;
16191619 Ok ( Arc :: new ( self . statistics_inner ( & child_statistics) ?) )
16201620 }
16211621
@@ -2239,7 +2239,7 @@ mod tests {
22392239 use crate :: execution_plan:: Boundedness ;
22402240 use crate :: expressions:: col;
22412241 use crate :: metrics:: MetricValue ;
2242- use crate :: statistics_context :: compute_statistics;
2242+ use crate :: statistics :: compute_statistics;
22432243 use crate :: test:: TestMemoryExec ;
22442244 use crate :: test:: assert_is_pending;
22452245 use crate :: test:: exec:: {
0 commit comments