Commit 6b232ef 1 parent cfce080 commit 6b232ef Copy full SHA for 6b232ef
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 @@ -68,8 +68,8 @@ pub mod expr_fn {
68
68
}
69
69
70
70
#[ doc = "Returns the number of bits in the `string`" ]
71
- pub fn bit_length ( args : Vec < Expr > ) -> Expr {
72
- super :: bit_length ( ) . call ( args )
71
+ pub fn bit_length ( arg : Expr ) -> Expr {
72
+ super :: bit_length ( ) . call ( vec ! [ arg ] )
73
73
}
74
74
75
75
#[ doc = "Removes all characters, spaces by default, from both sides of a string" ]
@@ -78,8 +78,8 @@ pub mod expr_fn {
78
78
}
79
79
80
80
#[ doc = "Converts the Unicode code point to a UTF8 character" ]
81
- pub fn chr ( args : Vec < Expr > ) -> Expr {
82
- super :: chr ( ) . call ( args )
81
+ pub fn chr ( arg : Expr ) -> Expr {
82
+ super :: chr ( ) . call ( vec ! [ arg ] )
83
83
}
84
84
85
85
#[ doc = "Returns the Levenshtein distance between the two given strings" ]
You can’t perform that action at this time.
0 commit comments