Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Devan <[email protected]>
  • Loading branch information
devanbenz committed Sep 1, 2024
1 parent f16de44 commit d0bf3ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions datafusion/functions/src/string/concat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ impl ScalarUDFImpl for ConcatFunc {
arg_types.iter().for_each(|data_type| {
if data_type == &Utf8View {
dt = data_type;
} else if data_type == &LargeUtf8 && dt != &Utf8View {
}
if data_type == &LargeUtf8 && dt != &Utf8View {
dt = data_type;
}
});
Expand All @@ -87,7 +88,8 @@ impl ScalarUDFImpl for ConcatFunc {
args.iter().for_each(|col| {
if col.data_type() == DataType::Utf8View {
return_datatype = col.data_type();
} else if col.data_type() == DataType::LargeUtf8
}
if col.data_type() == DataType::LargeUtf8
&& return_datatype != DataType::Utf8View
{
return_datatype = col.data_type();
Expand Down

0 comments on commit d0bf3ba

Please sign in to comment.