fn filter(
        &self,
        plan: &PlanNode,
        predicate: &Option<sqlparser::ast::Expr>,
        select: Option<&sqlparser::ast::Select>,
    ) -> Result<PlanNode> {
        match *predicate {
            Some(ref predicate_expr) => self
                .sql_to_rex(predicate_expr, &plan.schema(), select)
                .and_then(|filter_expr| {
                    PlanBuilder::from(plan)
                        .filter(filter_expr)
                        .and_then(|builder| builder.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>,
        select: Option<&sqlparser::ast::Select>,
    ) -> Result<PlanNode> {
        match *predicate {
            Some(ref predicate_expr) => self
                .sql_to_rex(predicate_expr, &plan.schema(), select)
                .and_then(|filter_expr| {
                    PlanBuilder::from(plan)
                        .filter(filter_expr)
                        .and_then(|builder| builder.build())
                }),
            _ => Ok(plan.clone()),
        }
    }
fn filter ( & self , plan : & PlanNode , predicate : & Option < sqlparser :: ast :: Expr > , select : Option < & sqlparser :: ast :: Select > , ) -> Result < PlanNode > { match * predicate { Some ( ref predicate_expr ) => self . sql_to_rex ( predicate_expr , & plan . schema ( ) , select ) . and_then ( | filter_expr | { PlanBuilder :: from ( plan ) . filter ( filter_expr ) . and_then ( | builder | builder . build ( ) ) } ) , _ => Ok ( plan . clone ( ) ) , } }
Apply a filter to the plan
Apply a filter to the plan
&self
plan
&PlanNode
predicate
&Option<sqlparser::ast::Expr>
select
Option<&sqlparser::ast::Select>
&self
plan
&PlanNode
predicate
&Option<sqlparser::ast::Expr>
select
Option<&sqlparser::ast::Select>