Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
Syleechan committed Nov 22, 2023
1 parent 89f9e4f commit ec5f723
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datafusion/physical-expr/src/unicode_expressions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,10 @@ pub fn translate<T: OffsetSizeTrait>(args: &[ArrayRef]) -> Result<ArrayRef> {
/// SUBSTRING_INDEX('www.apache.org', '.', -1) = org
pub fn substr_index<T: OffsetSizeTrait>(args: &[ArrayRef]) -> Result<ArrayRef> {
if args.len() != 3 {
return Err(DataFusionError::Internal(format!(
"substr_index function requires three arguments, got {}",
return internal_err!(
"substr_index was called with {} arguments. It requires 3.",
args.len()
)));
);
}

let string_array = as_generic_string_array::<T>(&args[0])?;
Expand Down

0 comments on commit ec5f723

Please sign in to comment.