Skip to content

Commit f86f753

Browse files
committed
.
1 parent fb4d133 commit f86f753

2 files changed

Lines changed: 0 additions & 15 deletions

File tree

datafusion/expr/src/type_coercion/other.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,6 @@ use arrow::datatypes::DataType;
1919

2020
use super::binary::type_union_coercion;
2121

22-
/// Attempts to coerce the types of `list_types` to be comparable with the
23-
/// `expr_type`.
24-
/// Returns the common data type for `expr_type` and `list_types`
25-
pub fn get_coerce_type_for_list(
26-
expr_type: &DataType,
27-
list_types: &[DataType],
28-
) -> Option<DataType> {
29-
list_types
30-
.iter()
31-
.try_fold(expr_type.clone(), |left_type, right_type| {
32-
type_union_coercion(&left_type, right_type)
33-
})
34-
}
35-
3622
/// Find a common coerceable type for all `when_or_then_types` as well
3723
/// and the `case_or_else_type`, if specified.
3824
/// Returns the common data type for `when_or_then_types` and `case_or_else_type`

datafusion/optimizer/src/analyzer/type_coercion.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2821,7 +2821,6 @@ mod test {
28212821
)
28222822
}
28232823

2824-
#[test]
28252824
#[test]
28262825
fn try_cast_string_literal_to_numeric() {
28272826
use super::try_cast_string_literal_to_type;

0 commit comments

Comments
 (0)