@@ -33,9 +33,6 @@ use crate::scalar_fn::fns::list_contains::ListContains;
3333use crate :: scalar_fn:: fns:: mask:: Mask ;
3434use crate :: scalar_fn:: fns:: not:: Not ;
3535use crate :: scalar_fn:: fns:: operators:: Operator ;
36- use crate :: scalar_fn:: fns:: variant_get:: VariantGet ;
37- use crate :: scalar_fn:: fns:: variant_get:: VariantGetOptions ;
38- use crate :: scalar_fn:: fns:: variant_get:: VariantPath ;
3936use crate :: scalar_fn:: fns:: zip:: Zip ;
4037
4138/// A collection of built-in scalar functions that can be applied to expressions or arrays.
@@ -66,9 +63,6 @@ pub trait ExprBuiltins: Sized {
6663 /// Conditional selection: `result[i] = if mask[i] then if_true[i] else if_false[i]`.
6764 fn zip ( & self , if_true : Expression , if_false : Expression ) -> VortexResult < Expression > ;
6865
69- /// Extract data by path and dtype from a variant expression.
70- fn variant_get ( & self , path : Option < VariantPath > , dtype : DType ) -> VortexResult < Expression > ;
71-
7266 /// Apply a binary operator to this expression and another.
7367 fn binary ( & self , rhs : Expression , op : Operator ) -> VortexResult < Expression > ;
7468}
@@ -106,10 +100,6 @@ impl ExprBuiltins for Expression {
106100 Zip . try_new_expr ( EmptyOptions , [ if_true, if_false, self . clone ( ) ] )
107101 }
108102
109- fn variant_get ( & self , path : Option < VariantPath > , dtype : DType ) -> VortexResult < Expression > {
110- VariantGet . try_new_expr ( VariantGetOptions :: new ( path, dtype) , [ self . clone ( ) ] )
111- }
112-
113103 fn binary ( & self , rhs : Expression , op : Operator ) -> VortexResult < Expression > {
114104 Binary . try_new_expr ( op, [ self . clone ( ) , rhs] )
115105 }
@@ -142,9 +132,6 @@ pub trait ArrayBuiltins: Sized {
142132 /// Check if a list contains a value.
143133 fn list_contains ( & self , value : ArrayRef ) -> VortexResult < ArrayRef > ;
144134
145- /// Extract data by path and dtype from a variant array.
146- fn variant_get ( & self , path : Option < VariantPath > , dtype : DType ) -> VortexResult < ArrayRef > ;
147-
148135 /// Apply a binary operator to this array and another.
149136 fn binary ( & self , rhs : ArrayRef , op : Operator ) -> VortexResult < ArrayRef > ;
150137
@@ -215,16 +202,6 @@ impl ArrayBuiltins for ArrayRef {
215202 . optimize ( )
216203 }
217204
218- fn variant_get ( & self , path : Option < VariantPath > , dtype : DType ) -> VortexResult < ArrayRef > {
219- VariantGet
220- . try_new_array (
221- self . len ( ) ,
222- VariantGetOptions :: new ( path, dtype) ,
223- [ self . clone ( ) ] ,
224- ) ?
225- . optimize ( )
226- }
227-
228205 fn binary ( & self , rhs : ArrayRef , op : Operator ) -> VortexResult < ArrayRef > {
229206 Binary
230207 . try_new_array ( self . len ( ) , op, [ self . clone ( ) , rhs] ) ?
0 commit comments