alamb commented on code in PR #4741: URL: https://github.com/apache/arrow-datafusion/pull/4741#discussion_r1057919096
########## datafusion/expr/src/type_coercion/functions.rs: ########## @@ -177,35 +177,12 @@ pub fn can_coerce_from(type_into: &DataType, type_from: &DataType) -> bool { Timestamp(TimeUnit::Nanosecond, None) => { matches!(type_from, Null | Timestamp(_, None)) } - Date32 => { - matches!(type_from, Null | Timestamp(_, None)) - } Utf8 | LargeUtf8 => true, Null => can_cast_types(type_from, type_into), _ => false, } } -/// Returns a common coerced datatype between 2 given datatypes -/// -/// See the module level documentation for more detail on coercion. -pub fn get_common_coerced_type( Review Comment: It may be worth waiting for a specific use before leaving it in 🤔 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org