// coercion rules for equality operations. This is a superset of all numerical coercion rules.
coercion rules for equality operations. This is a superset of all numerical coercion rules.
coercion rules for equality operations . This is a superset of all numerical coercion rules .
pub fn equal_coercion(lhs_type: &DataType, rhs_type: &DataType) -> Result<DataType> {
    if lhs_type == rhs_type {
        // same type => equality is possible
        return Ok(lhs_type.clone());
    }
    numerical_coercion(lhs_type, rhs_type).or_else(|_| dictionary_coercion(lhs_type, rhs_type))
}
pub fn equal_coercion ( lhs_type : & DataType , rhs_type : & DataType ) -> Result < DataType > { if lhs_type == rhs_type { // same type => equality is possible return Ok ( lhs_type . clone ( ) ) ; } numerical_coercion ( lhs_type , rhs_type ) . or_else ( | _ | dictionary_coercion ( lhs_type , rhs_type ) ) }
coercion rules for equality operations.
coercion rules for equality operations .
lhs_type
&DataType
rhs_type
&DataType