This function creates the cache object that stores the plan properties such as schema, equivalence properties, ordering, partitioning, etc.
(
input: &Arc<dyn ExecutionPlan>,
schema: SchemaRef,
async_expr_mapping: &ProjectionMapping,
)
| 92 | /// This function creates the cache object that stores the plan properties |
| 93 | /// such as schema, equivalence properties, ordering, partitioning, etc. |
| 94 | fn compute_properties( |
| 95 | input: &Arc<dyn ExecutionPlan>, |
| 96 | schema: SchemaRef, |
| 97 | async_expr_mapping: &ProjectionMapping, |
| 98 | ) -> Result<PlanProperties> { |
| 99 | Ok(PlanProperties::new( |
| 100 | input |
| 101 | .equivalence_properties() |
| 102 | .project(async_expr_mapping, schema), |
| 103 | input.output_partitioning().clone(), |
| 104 | input.pipeline_behavior(), |
| 105 | input.boundedness(), |
| 106 | )) |
| 107 | } |
| 108 | |
| 109 | pub fn async_exprs(&self) -> &[Arc<AsyncFuncExpr>] { |
| 110 | &self.async_exprs |
nothing calls this directly
no test coverage detected