File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,8 @@ impl ScalarUDFImpl for AsyncScalarUDF {
112112 self . inner . signature ( )
113113 }
114114
115- fn return_type ( & self , _arg_types : & [ DataType ] ) -> Result < DataType > {
116- self . inner . return_type ( _arg_types )
115+ fn return_type ( & self , arg_types : & [ DataType ] ) -> Result < DataType > {
116+ self . inner . return_type ( arg_types )
117117 }
118118
119119 fn invoke_with_args ( & self , _args : ScalarFunctionArgs ) -> Result < ColumnarValue > {
Original file line number Diff line number Diff line change @@ -198,12 +198,12 @@ impl PhysicalExpr for AsyncFuncExpr {
198198 self
199199 }
200200
201- fn data_type ( & self , _input_schema : & Schema ) -> Result < DataType > {
202- self . func . data_type ( _input_schema )
201+ fn data_type ( & self , input_schema : & Schema ) -> Result < DataType > {
202+ self . func . data_type ( input_schema )
203203 }
204204
205- fn nullable ( & self , _input_schema : & Schema ) -> Result < bool > {
206- self . func . nullable ( _input_schema )
205+ fn nullable ( & self , input_schema : & Schema ) -> Result < bool > {
206+ self . func . nullable ( input_schema )
207207 }
208208
209209 fn evaluate ( & self , _batch : & RecordBatch ) -> Result < ColumnarValue > {
@@ -225,4 +225,8 @@ impl PhysicalExpr for AsyncFuncExpr {
225225 func : new_func,
226226 } ) )
227227 }
228+
229+ fn fmt_sql ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
230+ write ! ( f, "{}" , self . func)
231+ }
228232}
You can’t perform that action at this time.
0 commit comments