pub trait FilterExpressionExt {
// Required methods
fn substrait_to_df(&self, schema: Arc<ArrowSchema>) -> Result<Expr>;
fn df_to_substrait(expr: Expr, schema: &Schema) -> Result<Self>
where Self: Sized;
}
Expand description
Helper trait to bridge lance-encoding and substrait
Required Methods§
Sourcefn substrait_to_df(&self, schema: Arc<ArrowSchema>) -> Result<Expr>
fn substrait_to_df(&self, schema: Arc<ArrowSchema>) -> Result<Expr>
Convert a lance-encoding filter expression (which we assume is substrait encoded) into a datafusion expr