@@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
44use vortex_array:: array:: StructArray ;
55use vortex_array:: compute:: try_cast;
66use vortex_array:: encoding:: ids;
7- use vortex_array:: stats:: { Stat , StatisticsVTable , StatsSet } ;
7+ use vortex_array:: stats:: StatsSet ;
88use vortex_array:: validity:: { ArrayValidity , LogicalValidity , Validity , ValidityVTable } ;
99use vortex_array:: variants:: { ExtensionArrayTrait , VariantsVTable } ;
1010use vortex_array:: visitor:: { ArrayVisitor , VisitorVTable } ;
@@ -14,7 +14,6 @@ use vortex_array::{
1414} ;
1515use vortex_dtype:: { DType , PType } ;
1616use vortex_error:: { vortex_bail, VortexExpect as _, VortexResult , VortexUnwrap } ;
17- use vortex_scalar:: Scalar ;
1817
1918use crate :: compute:: decode_to_temporal;
2019
@@ -166,18 +165,3 @@ impl VisitorVTable<DateTimePartsArray> for DateTimePartsEncoding {
166165 visitor. visit_child ( "subsecond" , & array. subsecond ( ) )
167166 }
168167}
169-
170- impl StatisticsVTable < DateTimePartsArray > for DateTimePartsEncoding {
171- fn compute_statistics ( & self , array : & DateTimePartsArray , stat : Stat ) -> VortexResult < StatsSet > {
172- let maybe_stat = match stat {
173- Stat :: NullCount => Some ( Scalar :: from ( array. validity ( ) . null_count ( array. len ( ) ) ?) ) ,
174- _ => None ,
175- } ;
176-
177- let mut stats = StatsSet :: default ( ) ;
178- if let Some ( value) = maybe_stat {
179- stats. set ( stat, value) ;
180- }
181- Ok ( stats)
182- }
183- }
0 commit comments