Function datafusion::physical_plan::expressions::cast_with_options
source · pub fn cast_with_options(
expr: Arc<dyn PhysicalExpr, Global>,
input_schema: &Schema,
cast_type: DataType,
cast_options: Option<CastOptions<'static>>
) -> Result<Arc<dyn PhysicalExpr, Global>, DataFusionError>
Expand description
Return a PhysicalExpression representing expr
casted to
cast_type
, if any casting is needed.
Note that such casts may lose type information