Struct datafusion::physical_plan::expressions::CastExpr [−][src]
pub struct CastExpr { /* fields omitted */ }
CAST expression casts an expression to a specific data type and returns a runtime error on invalid cast
Implementations
impl CastExpr
[src]
impl CastExpr
[src]pub fn new(
expr: Arc<dyn PhysicalExpr>,
cast_type: DataType,
cast_options: CastOptions
) -> Self
[src]
expr: Arc<dyn PhysicalExpr>,
cast_type: DataType,
cast_options: CastOptions
) -> Self
Create a new CastExpr
pub fn expr(&self) -> &Arc<dyn PhysicalExpr>
[src]
The expression to cast
pub fn cast_type(&self) -> &DataType
[src]
The data type to cast to
Trait Implementations
impl PhysicalExpr for CastExpr
[src]
impl PhysicalExpr for CastExpr
[src]Auto Trait Implementations
impl !RefUnwindSafe for CastExpr
impl !RefUnwindSafe for CastExpr
impl !UnwindSafe for CastExpr
impl !UnwindSafe for CastExpr