Struct datafusion_physical_expr::expressions::TryCastExpr
source · [−]pub struct TryCastExpr { /* private fields */ }
Expand description
TRY_CAST expression casts an expression to a specific data type and retuns NULL on invalid cast
Implementations
sourceimpl TryCastExpr
impl TryCastExpr
Trait Implementations
sourceimpl Debug for TryCastExpr
impl Debug for TryCastExpr
sourceimpl Display for TryCastExpr
impl Display for TryCastExpr
sourceimpl PhysicalExpr for TryCastExpr
impl PhysicalExpr for TryCastExpr
sourcefn data_type(&self, _input_schema: &Schema) -> Result<DataType>
fn data_type(&self, _input_schema: &Schema) -> Result<DataType>
Get the data type of this expression, given the schema of the input
sourcefn nullable(&self, _input_schema: &Schema) -> Result<bool>
fn nullable(&self, _input_schema: &Schema) -> Result<bool>
Determine whether this expression is nullable, given the schema of the input
sourcefn evaluate(&self, batch: &RecordBatch) -> Result<ColumnarValue>
fn evaluate(&self, batch: &RecordBatch) -> Result<ColumnarValue>
Evaluate an expression against a RecordBatch
sourcefn evaluate_selection(
&self,
batch: &RecordBatch,
selection: &BooleanArray
) -> Result<ColumnarValue>
fn evaluate_selection(
&self,
batch: &RecordBatch,
selection: &BooleanArray
) -> Result<ColumnarValue>
Evaluate an expression against a RecordBatch after first applying a validity array Read more
Auto Trait Implementations
impl !RefUnwindSafe for TryCastExpr
impl Send for TryCastExpr
impl Sync for TryCastExpr
impl Unpin for TryCastExpr
impl !UnwindSafe for TryCastExpr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more