MCPcopy Create free account
hub / github.com/apache/datafusion / compute_properties

Method compute_properties

datafusion/physical-plan/src/async_func.rs:94–107  ·  view source on GitHub ↗

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,
    )

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 7

newFunction · 0.85
pipeline_behaviorMethod · 0.80
projectMethod · 0.45
cloneMethod · 0.45
output_partitioningMethod · 0.45
boundednessMethod · 0.45

Tested by

no test coverage detected