(
&self,
projection: Projection,
config: &dyn OptimizerConfig,
)
| 75 | } |
| 76 | |
| 77 | fn try_optimize_proj( |
| 78 | &self, |
| 79 | projection: Projection, |
| 80 | config: &dyn OptimizerConfig, |
| 81 | ) -> Result<Transformed<LogicalPlan>> { |
| 82 | let Projection { |
| 83 | expr, |
| 84 | input, |
| 85 | schema, |
| 86 | .. |
| 87 | } = projection; |
| 88 | let input = Arc::unwrap_or_clone(input); |
| 89 | self.try_unary_plan(expr, input, config)? |
| 90 | .map_data(|(new_expr, new_input)| { |
| 91 | Projection::try_new_with_schema(new_expr, Arc::new(new_input), schema) |
| 92 | .map(LogicalPlan::Projection) |
| 93 | }) |
| 94 | } |
| 95 | |
| 96 | fn try_optimize_sort( |
| 97 | &self, |
no test coverage detected