Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordworms committed Aug 20, 2024
1 parent 2cc0e6c commit 985e114
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions datafusion/functions/src/unicode/rpad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
// specific language governing permissions and limitations
// under the License.

use std::any::Any;
use std::sync::Arc;
use std::fmt::Write;
use crate::utils::{make_scalar_function, utf8_to_str_type};
use arrow::array::{ArrayRef, GenericStringBuilder, OffsetSizeTrait};
use arrow::datatypes::DataType;
Expand All @@ -28,6 +25,9 @@ use datafusion_common::DataFusionError;
use datafusion_common::{exec_err, Result};
use datafusion_expr::TypeSignature::Exact;
use datafusion_expr::{ColumnarValue, ScalarUDFImpl, Signature, Volatility};
use std::any::Any;
use std::fmt::Write;
use std::sync::Arc;
use unicode_segmentation::UnicodeSegmentation;

#[derive(Debug)]
Expand Down Expand Up @@ -143,7 +143,8 @@ macro_rules! process_rpad {
$builder.append_value(graphemes[..length].concat());
} else {
$builder.write_str(string)?;
$builder.write_str(&" ".repeat(length - graphemes.len()))?;
$builder
.write_str(&" ".repeat(length - graphemes.len()))?;
$builder.append_value("");
}
}
Expand Down

0 comments on commit 985e114

Please sign in to comment.