Skip to content

Commit

Permalink
Fix clippy failures (apache#8972)
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb authored Jan 23, 2024
1 parent 558b3d6 commit ee7ab0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions datafusion/physical-expr/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,10 +559,10 @@ pub fn create_physical_fun(
}),
BuiltinScalarFunction::InStr => Arc::new(|args| match args[0].data_type() {
DataType::Utf8 => {
make_scalar_function(string_expressions::instr::<i32>)(args)
make_scalar_function_inner(string_expressions::instr::<i32>)(args)
}
DataType::LargeUtf8 => {
make_scalar_function(string_expressions::instr::<i64>)(args)
make_scalar_function_inner(string_expressions::instr::<i64>)(args)
}
other => internal_err!("Unsupported data type {other:?} for function instr"),
}),
Expand Down Expand Up @@ -790,10 +790,10 @@ pub fn create_physical_fun(
}),
BuiltinScalarFunction::EndsWith => Arc::new(|args| match args[0].data_type() {
DataType::Utf8 => {
make_scalar_function(string_expressions::ends_with::<i32>)(args)
make_scalar_function_inner(string_expressions::ends_with::<i32>)(args)
}
DataType::LargeUtf8 => {
make_scalar_function(string_expressions::ends_with::<i64>)(args)
make_scalar_function_inner(string_expressions::ends_with::<i64>)(args)
}
other => {
internal_err!("Unsupported data type {other:?} for function ends_with")
Expand Down

0 comments on commit ee7ab0b

Please sign in to comment.