Commit 17d7238 1 parent 2b3fb04 commit 17d7238 Copy full SHA for 17d7238
File tree 2 files changed +4
-5
lines changed
datafusion/functions/src/string
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 16
16
// under the License.
17
17
18
18
use std:: any:: Any ;
19
- use std:: iter;
20
19
use std:: sync:: Arc ;
21
20
22
21
use arrow:: array:: ArrayRef ;
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ pub mod expr_fn {
62
62
}
63
63
64
64
#[ doc = "Returns the number of bits in the `string`" ]
65
- pub fn bit_length ( args : Vec < Expr > ) -> Expr {
66
- super :: bit_length ( ) . call ( args )
65
+ pub fn bit_length ( arg : Expr ) -> Expr {
66
+ super :: bit_length ( ) . call ( vec ! [ arg ] )
67
67
}
68
68
69
69
#[ doc = "Removes all characters, spaces by default, from both sides of a string" ]
@@ -72,8 +72,8 @@ pub mod expr_fn {
72
72
}
73
73
74
74
#[ doc = "Converts the Unicode code point to a UTF8 character" ]
75
- pub fn chr ( args : Vec < Expr > ) -> Expr {
76
- super :: chr ( ) . call ( args )
75
+ pub fn chr ( arg : Expr ) -> Expr {
76
+ super :: chr ( ) . call ( vec ! [ arg ] )
77
77
}
78
78
79
79
#[ doc = "Returns the Levenshtein distance between the two given strings" ]
You can’t perform that action at this time.
0 commit comments