Function datafusion_expr::type_coercion::binary::get_wider_type
source · pub fn get_wider_type(lhs: &DataType, rhs: &DataType) -> Result<DataType>
Expand description
Returns the wider type among arguments lhs
and rhs
.
The wider type is the type that can safely represent values from both types
without information loss. Returns an Error if types are incompatible.