pub fn optimize(plan: SqlPlan, catalog: &dyn SqlCatalog) -> SqlPlan
Apply all optimization passes to a plan.