Trait datafusion::physical_plan::PhysicalExpr
source · [−]pub trait PhysicalExpr: Send + Sync + Display + Debug {
fn as_any(&self) -> &dyn Any;
fn data_type(&self, input_schema: &Schema) -> Result<DataType>;
fn nullable(&self, input_schema: &Schema) -> Result<bool>;
fn evaluate(&self, batch: &RecordBatch) -> Result<ColumnarValue>;
}
Expand description
Expression that can be evaluated against a RecordBatch A Physical expression knows its type, nullability and how to evaluate itself.
Required methods
Returns the physical expression as Any
so that it can be
downcast to a specific implementation.
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
fn evaluate(&self, batch: &RecordBatch) -> Result<ColumnarValue>
fn evaluate(&self, batch: &RecordBatch) -> Result<ColumnarValue>
Evaluate an expression against a RecordBatch