@@ -19,13 +19,13 @@ use itertools::Itertools;
1919use vortex_array:: ArrayContext ;
2020use vortex_array:: ArrayId ;
2121use vortex_array:: ArrayRef ;
22+ use vortex_array:: aggregate_fn:: AggregateFnRef ;
2223use vortex_array:: dtype:: DType ;
2324use vortex_array:: dtype:: FieldPath ;
24- use vortex_array:: expr:: stats:: Stat ;
2525use vortex_array:: iter:: ArrayIterator ;
2626use vortex_array:: iter:: ArrayIteratorExt ;
2727use vortex_array:: session:: ArraySessionExt ;
28- use vortex_array:: stats:: PRUNING_STATS ;
28+ use vortex_array:: stats:: pruning_aggregate_fns ;
2929use vortex_array:: stream:: ArrayStream ;
3030use vortex_array:: stream:: ArrayStreamAdapter ;
3131use vortex_array:: stream:: ArrayStreamExt ;
@@ -84,7 +84,7 @@ pub struct VortexWriteOptions {
8484 buffered_bytes : BufferedBytesTracker ,
8585 exclude_dtype : bool ,
8686 max_variable_length_statistics_size : usize ,
87- file_statistics : Vec < Stat > ,
87+ file_statistics : Vec < AggregateFnRef > ,
8888 write_legacy_statistics : bool ,
8989 metadata : HashMap < String , ByteBuffer > ,
9090}
@@ -107,7 +107,7 @@ impl VortexWriteOptions {
107107 buffered_bytes : BufferedBytesTracker :: new ( ) ,
108108 session,
109109 exclude_dtype : false ,
110- file_statistics : PRUNING_STATS . to_vec ( ) ,
110+ file_statistics : pruning_aggregate_fns ( ) ,
111111 write_legacy_statistics : true ,
112112 max_variable_length_statistics_size : 64 ,
113113 metadata : HashMap :: default ( ) ,
@@ -159,7 +159,7 @@ impl VortexWriteOptions {
159159 /// Configure which statistics to compute at the file level.
160160 ///
161161 /// Pass an empty vector to omit file-level statistics.
162- pub fn with_file_statistics ( mut self , file_statistics : Vec < Stat > ) -> Self {
162+ pub fn with_file_statistics ( mut self , file_statistics : Vec < AggregateFnRef > ) -> Self {
163163 self . file_statistics = file_statistics;
164164 self
165165 }
0 commit comments