Function datafusion_physical_expr::expressions::try_cast
source · pub fn try_cast(
expr: Arc<dyn PhysicalExpr>,
input_schema: &Schema,
cast_type: DataType
) -> Result<Arc<dyn PhysicalExpr>>
Expand description
Return a PhysicalExpression representing expr
casted to
cast_type
, if any casting is needed.
Note that such casts may lose type information