Skip to content

Commit

Permalink
Fixed missing trim() function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Omega359 committed Mar 23, 2024
1 parent fc8ff76 commit a94a4f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions datafusion/functions/src/string/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ pub mod expr_fn {
super::to_hex().call(vec![arg1])
}

#[doc = "Removes all characters, spaces by default, from both sides of a string"]
pub fn trim(args: Vec<Expr>) -> Expr {
super::btrim().call(args)
}

#[doc = "Converts a string to uppercase."]
pub fn upper(arg1: Expr) -> Expr {
super::upper().call(vec![arg1])
Expand Down

0 comments on commit a94a4f6

Please sign in to comment.