File tree 1 file changed +6
-8
lines changed
datafusion/functions/src/encoding
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -103,12 +103,11 @@ impl ScalarUDFImpl for EncodeFunc {
103
103
} )
104
104
}
105
105
106
- fn invoke_batch (
106
+ fn invoke_with_args (
107
107
& self ,
108
- args : & [ ColumnarValue ] ,
109
- _number_rows : usize ,
108
+ args : datafusion_expr:: ScalarFunctionArgs ,
110
109
) -> Result < ColumnarValue > {
111
- encode ( args)
110
+ encode ( & args . args )
112
111
}
113
112
114
113
fn coerce_types ( & self , arg_types : & [ DataType ] ) -> Result < Vec < DataType > > {
@@ -183,12 +182,11 @@ impl ScalarUDFImpl for DecodeFunc {
183
182
Ok ( arg_types[ 0 ] . to_owned ( ) )
184
183
}
185
184
186
- fn invoke_batch (
185
+ fn invoke_with_args (
187
186
& self ,
188
- args : & [ ColumnarValue ] ,
189
- _number_rows : usize ,
187
+ args : datafusion_expr:: ScalarFunctionArgs ,
190
188
) -> Result < ColumnarValue > {
191
- decode ( args)
189
+ decode ( & args . args )
192
190
}
193
191
194
192
fn coerce_types ( & self , arg_types : & [ DataType ] ) -> Result < Vec < DataType > > {
You can’t perform that action at this time.
0 commit comments