datafusion_expr::binary

Function get_result_type

Source
pub fn get_result_type(
    lhs: &DataType,
    op: &Operator,
    rhs: &DataType,
) -> Result<DataType, DataFusionError>
Expand description

Returns the resulting type of a binary expression evaluating the op with the left and right hand types