fn filter(
        &self,
        plan: &PlanNode,
        predicate: &Option<sqlparser::ast::Expr>,
    ) -> Result<PlanNode> {
        match *predicate {
            Some(ref predicate_expr) => Ok(PlanBuilder::from(&plan)
                .filter(self.sql_to_rex(predicate_expr, &plan.schema())?)?
                .build()?),
            _ => Ok(plan.clone()),
        }
    }
/// Apply a filter to the plan
Apply a filter to the plan
Apply a filter to the plan
fn filter(
        &self,
        plan: &PlanNode,
        predicate: &Option<sqlparser::ast::Expr>,
    ) -> Result<PlanNode> {
        match *predicate {
            Some(ref predicate_expr) => Ok(PlanBuilder::from(&plan)
                .filter(self.sql_to_rex(predicate_expr, &plan.schema())?)?
                .build()?),
            _ => Ok(plan.clone()),
        }
    }
fn filter ( & self , plan : & PlanNode , predicate : & Option < sqlparser :: ast :: Expr > , ) -> Result < PlanNode > { match * predicate { Some ( ref predicate_expr ) => Ok ( PlanBuilder :: from ( & plan ) . filter ( self . sql_to_rex ( predicate_expr , & plan . schema ( ) ) ? ) ? . build ( ) ? ) , _ => Ok ( plan . clone ( ) ) , } }
Apply a filter to the plan
Apply a filter to the plan
&self
plan
&PlanNode
predicate
&Option<sqlparser::ast::Expr>
&self
plan
&PlanNode
predicate
&Option<sqlparser::ast::Expr>