Skip to content

Commit 6b232ef

Browse files
committed
Refactor to keep ui
Signed-off-by: Chojan Shang <[email protected]>
1 parent cfce080 commit 6b232ef

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
@@ -68,8 +68,8 @@ pub mod expr_fn {
6868
}
6969

7070
#[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])
7373
}
7474

7575
#[doc = "Removes all characters, spaces by default, from both sides of a string"]
@@ -78,8 +78,8 @@ pub mod expr_fn {
7878
}
7979

8080
#[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])
8383
}
8484

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

0 commit comments

Comments
 (0)