polars_plan::plans

Function optimize

Source
pub fn optimize(
    logical_plan: DslPlan,
    opt_state: OptFlags,
    lp_arena: &mut Arena<IR>,
    expr_arena: &mut Arena<AExpr>,
    scratch: &mut Vec<Node>,
    expr_eval: Option<&'_ dyn Fn(&ExprIR, &Arena<AExpr>, &SchemaRef) -> Option<Arc<dyn PhysicalIoExpr>>>,
) -> PolarsResult<Node>