Commit d0bf3ba 1 parent f16de44 commit d0bf3ba Copy full SHA for d0bf3ba
File tree 1 file changed +4
-2
lines changed
datafusion/functions/src/string
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ impl ScalarUDFImpl for ConcatFunc {
72
72
arg_types. iter ( ) . for_each ( |data_type| {
73
73
if data_type == & Utf8View {
74
74
dt = data_type;
75
- } else if data_type == & LargeUtf8 && dt != & Utf8View {
75
+ }
76
+ if data_type == & LargeUtf8 && dt != & Utf8View {
76
77
dt = data_type;
77
78
}
78
79
} ) ;
@@ -87,7 +88,8 @@ impl ScalarUDFImpl for ConcatFunc {
87
88
args. iter ( ) . for_each ( |col| {
88
89
if col. data_type ( ) == DataType :: Utf8View {
89
90
return_datatype = col. data_type ( ) ;
90
- } else if col. data_type ( ) == DataType :: LargeUtf8
91
+ }
92
+ if col. data_type ( ) == DataType :: LargeUtf8
91
93
&& return_datatype != DataType :: Utf8View
92
94
{
93
95
return_datatype = col. data_type ( ) ;
You can’t perform that action at this time.
0 commit comments