Struct datafusion::physical_plan::expressions::CastExpr [−][src]
pub struct CastExpr { /* fields omitted */ }
Expand description
CAST expression casts an expression to a specific data type and returns a runtime error on invalid cast
Implementations
pub fn new(
expr: Arc<dyn PhysicalExpr>,
cast_type: DataType,
cast_options: CastOptions
) -> Self
pub fn new(
expr: Arc<dyn PhysicalExpr>,
cast_type: DataType,
cast_options: CastOptions
) -> Self
Create a new CastExpr
The expression to cast
Trait Implementations
Get the data type of this expression, given the schema of the input
Determine whether this expression is nullable, given the schema of the input
Evaluate an expression against a RecordBatch