extract_cast_info

Function extract_cast_info 

Source
fn extract_cast_info(
    expr: &Arc<dyn PhysicalExpr>,
) -> Option<(&Arc<dyn PhysicalExpr>, &DataType)>
Expand description

Extract cast information from a physical expression

If the expression is a CAST(expr, datatype) or TRY_CAST(expr, datatype), returns Some((inner_expr, target_datatype)). Otherwise returns None.