Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
hwj authored and hwj committed Jan 2, 2024
1 parent 47902ab commit 24a0c11
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions datafusion/expr/src/type_coercion/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,18 @@ fn get_valid_types(
&new_base_type,
);

if let DataType::List(ref field) = array_type {
let elem_type = field.data_type();
if is_append {
Ok(vec![vec![array_type.clone(), elem_type.to_owned()]])
} else {
Ok(vec![vec![elem_type.to_owned(), array_type.clone()]])
match array_type {
DataType::List(ref field) | DataType::LargeList(ref field) => {
let elem_type = field.data_type();
if is_append {
Ok(vec![vec![array_type.clone(), elem_type.to_owned()]])
} else {
Ok(vec![vec![elem_type.to_owned(), array_type.clone()]])
}
}
} else {
Ok(vec![vec![]])
_ => {Ok(vec![vec![]])},
}
}

let valid_types = match signature {
TypeSignature::Variadic(valid_types) => valid_types
.iter()
Expand Down

0 comments on commit 24a0c11

Please sign in to comment.