pub trait DataFusionMixins {
// Required methods
fn arrow_schema(&self) -> DeltaResult<ArrowSchemaRef>;
fn input_schema(&self) -> DeltaResult<ArrowSchemaRef>;
fn parse_predicate_expression(
&self,
expr: impl AsRef<str>,
df_state: &SessionState,
) -> DeltaResult<Expr>;
}
Expand description
Convience trait for calling common methods on snapshot heirarchies
Required Methods§
Sourcefn arrow_schema(&self) -> DeltaResult<ArrowSchemaRef>
fn arrow_schema(&self) -> DeltaResult<ArrowSchemaRef>
The physical datafusion schema of a table
Sourcefn input_schema(&self) -> DeltaResult<ArrowSchemaRef>
fn input_schema(&self) -> DeltaResult<ArrowSchemaRef>
Get the table schema as an ArrowSchemaRef
Sourcefn parse_predicate_expression(
&self,
expr: impl AsRef<str>,
df_state: &SessionState,
) -> DeltaResult<Expr>
fn parse_predicate_expression( &self, expr: impl AsRef<str>, df_state: &SessionState, ) -> DeltaResult<Expr>
Parse an expression string into a datafusion Expr
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.