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

Function create_physical_exprs

datafusion/physical-expr/src/planner.rs:575–587  ·  view source on GitHub ↗

Create vector of Physical Expression from a vector of logical expression

(
    exprs: I,
    input_dfschema: &DFSchema,
    execution_props: &ExecutionProps,
)

Source from the content-addressed store, hash-verified

573
574/// Create vector of Physical Expression from a vector of logical expression
575pub fn create_physical_exprs<'a, I>(
576 exprs: I,
577 input_dfschema: &DFSchema,
578 execution_props: &ExecutionProps,
579) -> Result<Vec<Arc<dyn PhysicalExpr>>>
580where
581 I: IntoIterator<Item = &'a Expr>,
582{
583 exprs
584 .into_iter()
585 .map(|expr| create_physical_expr(expr, input_dfschema, execution_props))
586 .collect()
587}
588
589/// Convert a logical expression to a physical expression (without any simplification, etc)
590pub fn logical2physical(expr: &Expr, schema: &Schema) -> Arc<dyn PhysicalExpr> {

Callers 4

create_physical_exprFunction · 0.85
buildMethod · 0.85
create_projection_exprsFunction · 0.85

Calls 4

create_physical_exprFunction · 0.85
collectMethod · 0.80
mapMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…