Skip to content

Commit

Permalink
Fixed struct name Trim -> BTrim
Browse files Browse the repository at this point in the history
  • Loading branch information
Omega359 committed Mar 22, 2024
1 parent 84c7e43 commit 038679f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions datafusion/functions/src/string/btrim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ fn btrim<T: OffsetSizeTrait>(args: &[ArrayRef]) -> Result<ArrayRef> {
}

#[derive(Debug)]
pub(super) struct TrimFunc {
pub(super) struct BTrimFunc {
signature: Signature,
aliases: Vec<String>,
}

impl TrimFunc {
impl BTrimFunc {
pub fn new() -> Self {
use DataType::*;
Self {
Expand All @@ -52,7 +52,7 @@ impl TrimFunc {
}
}

impl ScalarUDFImpl for TrimFunc {
impl ScalarUDFImpl for BTrimFunc {
fn as_any(&self) -> &dyn Any {
self
}
Expand Down
2 changes: 1 addition & 1 deletion datafusion/functions/src/string/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ mod to_hex;
mod upper;

// create UDFs
make_udf_function!(btrim::TrimFunc, BTRIM, btrim);
make_udf_function!(btrim::BTrimFunc, BTRIM, btrim);
make_udf_function!(ltrim::LtrimFunc, LTRIM, ltrim);
make_udf_function!(rtrim::RtrimFunc, RTRIM, rtrim);
make_udf_function!(starts_with::StartsWithFunc, STARTS_WITH, starts_with);
Expand Down

0 comments on commit 038679f

Please sign in to comment.