datafusion_expr::binary

Function values_coercion

source
pub fn values_coercion(
    lhs_type: &DataType,
    rhs_type: &DataType,
) -> Option<DataType>
Expand description

Coerce lhs_type and rhs_type to a common type for VALUES expression

For example VALUES (1, 2), (3.0, 4.0) where the first row is Int32 and the second row is Float64 will coerce to Float64