Function datafusion_expr::binary::get_wider_type
source ยท pub fn get_wider_type(
lhs: &DataType,
rhs: &DataType,
) -> Result<DataType, DataFusionError>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.