lance_encoding_datafusion::substrait

Trait FilterExpressionExt

Source
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§

Source

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

Source

fn df_to_substrait(expr: Expr, schema: &Schema) -> Result<Self>
where Self: Sized,

Convert a datafusion filter expression into a lance-encoding filter expression (using substrait)

Implementations on Foreign Types§

Source§

impl FilterExpressionExt for FilterExpression

Source§

fn substrait_to_df(&self, schema: Arc<ArrowSchema>) -> Result<Expr>

Source§

fn df_to_substrait(expr: Expr, schema: &Schema) -> Result<Self>
where Self: Sized,

Implementors§