From d0bf3bad4fe4d7d8ffce8496ef1ee07cf8cd665b Mon Sep 17 00:00:00 2001 From: Devan Date: Sun, 1 Sep 2024 11:42:12 -0500 Subject: [PATCH] clippy Signed-off-by: Devan --- datafusion/functions/src/string/concat.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/datafusion/functions/src/string/concat.rs b/datafusion/functions/src/string/concat.rs index 65688f540938..00fe69b0bd33 100644 --- a/datafusion/functions/src/string/concat.rs +++ b/datafusion/functions/src/string/concat.rs @@ -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; } }); @@ -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();