@@ -39,7 +39,8 @@ use datafusion_common::{
3939 utils:: take_function_args,
4040} ;
4141use datafusion_expr:: {
42- ArrayFunctionArgument , ArrayFunctionSignature , Expr , TypeSignature ,
42+ ArrayFunctionArgument , ArrayFunctionSignature , Expr , ScalarFunctionArgs ,
43+ TypeSignature ,
4344} ;
4445use datafusion_expr:: {
4546 ColumnarValue , Documentation , ScalarUDFImpl , Signature , Volatility ,
@@ -172,10 +173,7 @@ impl ScalarUDFImpl for ArrayElement {
172173 }
173174 }
174175
175- fn invoke_with_args (
176- & self ,
177- args : datafusion_expr:: ScalarFunctionArgs ,
178- ) -> Result < ColumnarValue > {
176+ fn invoke_with_args ( & self , args : ScalarFunctionArgs ) -> Result < ColumnarValue > {
179177 make_scalar_function ( array_element_inner) ( & args. args )
180178 }
181179
@@ -395,10 +393,7 @@ impl ScalarUDFImpl for ArraySlice {
395393 Ok ( arg_types[ 0 ] . clone ( ) )
396394 }
397395
398- fn invoke_with_args (
399- & self ,
400- args : datafusion_expr:: ScalarFunctionArgs ,
401- ) -> Result < ColumnarValue > {
396+ fn invoke_with_args ( & self , args : ScalarFunctionArgs ) -> Result < ColumnarValue > {
402397 make_scalar_function ( array_slice_inner) ( & args. args )
403398 }
404399
@@ -842,10 +837,7 @@ impl ScalarUDFImpl for ArrayPopFront {
842837 Ok ( arg_types[ 0 ] . clone ( ) )
843838 }
844839
845- fn invoke_with_args (
846- & self ,
847- args : datafusion_expr:: ScalarFunctionArgs ,
848- ) -> Result < ColumnarValue > {
840+ fn invoke_with_args ( & self , args : ScalarFunctionArgs ) -> Result < ColumnarValue > {
849841 make_scalar_function ( array_pop_front_inner) ( & args. args )
850842 }
851843
@@ -938,10 +930,7 @@ impl ScalarUDFImpl for ArrayPopBack {
938930 Ok ( arg_types[ 0 ] . clone ( ) )
939931 }
940932
941- fn invoke_with_args (
942- & self ,
943- args : datafusion_expr:: ScalarFunctionArgs ,
944- ) -> Result < ColumnarValue > {
933+ fn invoke_with_args ( & self , args : ScalarFunctionArgs ) -> Result < ColumnarValue > {
945934 make_scalar_function ( array_pop_back_inner) ( & args. args )
946935 }
947936
@@ -1043,10 +1032,7 @@ impl ScalarUDFImpl for ArrayAnyValue {
10431032 }
10441033 }
10451034
1046- fn invoke_with_args (
1047- & self ,
1048- args : datafusion_expr:: ScalarFunctionArgs ,
1049- ) -> Result < ColumnarValue > {
1035+ fn invoke_with_args ( & self , args : ScalarFunctionArgs ) -> Result < ColumnarValue > {
10501036 make_scalar_function ( array_any_value_inner) ( & args. args )
10511037 }
10521038
0 commit comments