Skip to content

Commit 17d7238

Browse files
committed
Refactor to keep ui
Signed-off-by: Chojan Shang <[email protected]>
1 parent 2b3fb04 commit 17d7238

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

datafusion/functions/src/string/chr.rs

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
// under the License.
1717

1818
use std::any::Any;
19-
use std::iter;
2019
use std::sync::Arc;
2120

2221
use arrow::array::ArrayRef;

datafusion/functions/src/string/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ pub mod expr_fn {
6262
}
6363

6464
#[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])
6767
}
6868

6969
#[doc = "Removes all characters, spaces by default, from both sides of a string"]
@@ -72,8 +72,8 @@ pub mod expr_fn {
7272
}
7373

7474
#[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])
7777
}
7878

7979
#[doc = "Returns the Levenshtein distance between the two given strings"]

0 commit comments

Comments
 (0)