fn coerced_from<'a>(
type_into: &'a DataType,
type_from: &'a DataType,
) -> Option<DataType>Expand description
Find the coerced type for the given type_into and type_from.
Returns None if coercion is not possible.
Expect uni-directional coercion, for example, i32 is coerced to i64, but i64 is not coerced to i32.
Unlike crate::binary::comparison_coercion, the coerced type is usually wider for lossless conversion.