Function datafusion::logical_expr::type_coercion::other::get_coerce_type_for_case_expression
source ยท pub fn get_coerce_type_for_case_expression(
when_or_then_types: &[DataType],
case_or_else_type: Option<&DataType>
) -> Option<DataType>
Expand description
Find a common coerceable type for all when_or_then_types
as well
and the case_or_else_type
, if specified.
Returns the common data type for when_or_then_types
and case_or_else_type