File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,20 +19,6 @@ use arrow::datatypes::DataType;
1919
2020use 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`
Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments