We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e52f506 commit 8084010Copy full SHA for 8084010
1 file changed
datafusion/expr/src/type_coercion/other.rs
@@ -67,7 +67,7 @@ pub fn get_coerce_type_for_case_expression(
67
else_type: Option<&DataType>,
68
) -> Option<DataType> {
69
let (initial_type, remaining) = match else_type {
70
- None => (&then_types[0], &then_types[1..]),
+ None => then_types.split_first()?,
71
Some(data_type) => (data_type, then_types),
72
};
73
fold_coerce(initial_type, remaining, type_union_coercion)
0 commit comments