Skip to content

Commit 48aa8ab

Browse files
committed
Fix fmt
1 parent b6c3e23 commit 48aa8ab

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

  • datafusion/expr-common/src/type_coercion

datafusion/expr-common/src/type_coercion/binary.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,14 +1151,17 @@ fn string_concat_coercion(lhs_type: &DataType, rhs_type: &DataType) -> Option<Da
11511151
(Dictionary(_, lhs_value_type), Dictionary(_, rhs_value_type)) => {
11521152
string_coercion(lhs_value_type, rhs_value_type).or(None)
11531153
}
1154-
_ =>
1154+
_ => {
11551155
if can_cast_types(lhs_type, &Utf8) && can_cast_types(rhs_type, &Utf8) {
11561156
Some(Utf8)
1157-
} else if can_cast_types(lhs_type, &LargeUtf8) && can_cast_types(rhs_type, &LargeUtf8) {
1157+
} else if can_cast_types(lhs_type, &LargeUtf8)
1158+
&& can_cast_types(rhs_type, &LargeUtf8)
1159+
{
11581160
Some(LargeUtf8)
11591161
} else {
11601162
None
11611163
}
1164+
}
11621165
})
11631166
}
11641167

0 commit comments

Comments
 (0)