@@ -11,13 +11,11 @@ use vortex_array::ArrayChildVisitor;
1111use vortex_array:: ArrayEq ;
1212use vortex_array:: ArrayHash ;
1313use vortex_array:: ArrayRef ;
14- use vortex_array:: Canonical ;
1514use vortex_array:: DeserializeMetadata ;
1615use vortex_array:: IntoArray ;
1716use vortex_array:: Precision ;
1817use vortex_array:: ProstMetadata ;
1918use vortex_array:: SerializeMetadata ;
20- use vortex_array:: arrays:: TemporalArray ;
2119use vortex_array:: buffer:: BufferHandle ;
2220use vortex_array:: serde:: ArrayChildren ;
2321use vortex_array:: stats:: ArrayStats ;
@@ -27,7 +25,6 @@ use vortex_array::vtable::ArrayId;
2725use vortex_array:: vtable:: ArrayVTable ;
2826use vortex_array:: vtable:: ArrayVTableExt ;
2927use vortex_array:: vtable:: BaseArrayVTable ;
30- use vortex_array:: vtable:: EncodeVTable ;
3128use vortex_array:: vtable:: NotSupported ;
3229use vortex_array:: vtable:: VTable ;
3330use vortex_array:: vtable:: ValidityChild ;
@@ -87,7 +84,6 @@ impl VTable for DateTimePartsVTable {
8784 type ValidityVTable = ValidityVTableFromChild ;
8885 type VisitorVTable = Self ;
8986 type ComputeVTable = NotSupported ;
90- type EncodeVTable = Self ;
9187
9288 fn id ( & self ) -> ArrayId {
9389 ArrayId :: new_ref ( "vortex.datetimeparts" )
@@ -308,19 +304,6 @@ impl ValidityChild<DateTimePartsVTable> for DateTimePartsVTable {
308304 }
309305}
310306
311- impl EncodeVTable < DateTimePartsVTable > for DateTimePartsVTable {
312- fn encode (
313- _vtable : & DateTimePartsVTable ,
314- canonical : & Canonical ,
315- _like : Option < & DateTimePartsArray > ,
316- ) -> VortexResult < Option < DateTimePartsArray > > {
317- let ext_array = canonical. clone ( ) . into_extension ( ) ;
318- let temporal = TemporalArray :: try_from ( ext_array) ?;
319-
320- Ok ( Some ( DateTimePartsArray :: try_from ( temporal) ?) )
321- }
322- }
323-
324307impl VisitorVTable < DateTimePartsVTable > for DateTimePartsVTable {
325308 fn visit_buffers ( _array : & DateTimePartsArray , _visitor : & mut dyn ArrayBufferVisitor ) { }
326309
0 commit comments