@@ -26,12 +26,11 @@ use crate::arrays::{
2626} ;
2727use crate :: builders:: ArrayBuilder ;
2828use crate :: compute:: { ComputeFn , Cost , InvocationArgs , IsConstantOpts , Output , is_constant_opts} ;
29- use crate :: operator:: OperatorRef ;
3029use crate :: serde:: ArrayChildren ;
3130use crate :: stats:: { Precision , Stat , StatsProviderExt , StatsSetRef } ;
3231use crate :: vtable:: {
33- ArrayVTable , CanonicalVTable , ComputeVTable , OperationsVTable , OperatorVTable , SerdeVTable ,
34- VTable , ValidityVTable , VisitorVTable ,
32+ ArrayVTable , CanonicalVTable , ComputeVTable , OperationsVTable , SerdeVTable , VTable ,
33+ ValidityVTable , VisitorVTable ,
3534} ;
3635use crate :: {
3736 ArrayEq , ArrayHash , Canonical , DynArrayEq , DynArrayHash , EncodingId , EncodingRef ,
@@ -168,11 +167,6 @@ pub trait Array:
168167 /// call.
169168 fn invoke ( & self , compute_fn : & ComputeFn , args : & InvocationArgs )
170169 -> VortexResult < Option < Output > > ;
171-
172- /// Convert the array to an operator if supported by the encoding.
173- ///
174- /// Returns `None` if the encoding does not support operator operations.
175- fn to_operator ( & self ) -> VortexResult < Option < OperatorRef > > ;
176170}
177171
178172impl Array for Arc < dyn Array > {
@@ -275,10 +269,6 @@ impl Array for Arc<dyn Array> {
275269 ) -> VortexResult < Option < Output > > {
276270 self . as_ref ( ) . invoke ( compute_fn, args)
277271 }
278-
279- fn to_operator ( & self ) -> VortexResult < Option < OperatorRef > > {
280- self . as_ref ( ) . to_operator ( )
281- }
282272}
283273
284274/// A reference counted pointer to a dynamic [`Array`] trait object.
@@ -649,10 +639,6 @@ impl<V: VTable> Array for ArrayAdapter<V> {
649639 ) -> VortexResult < Option < Output > > {
650640 <V :: ComputeVTable as ComputeVTable < V > >:: invoke ( & self . 0 , compute_fn, args)
651641 }
652-
653- fn to_operator ( & self ) -> VortexResult < Option < OperatorRef > > {
654- <V :: OperatorVTable as OperatorVTable < V > >:: to_operator ( & self . 0 )
655- }
656642}
657643
658644impl < V : VTable > ArrayHash for ArrayAdapter < V > {
0 commit comments