Skip to main content

coerce_binary_arithmetic

Function coerce_binary_arithmetic 

Source
pub fn coerce_binary_arithmetic(
    left: BoundExpression,
    right: BoundExpression,
) -> KyuResult<(BoundExpression, BoundExpression, LogicalType)>
Expand description

Determine the result type for a binary arithmetic operation and coerce both operands if needed. Returns (coerced_left, coerced_right, result_type).