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

Method new

datafusion/physical-expr/src/projection.rs:84–87  ·  view source on GitHub ↗

Create a new projection expression

(expr: Arc<dyn PhysicalExpr>, alias: impl Into<String>)

Source from the content-addressed store, hash-verified

82impl ProjectionExpr {
83 /// Create a new projection expression
84 pub fn new(expr: Arc<dyn PhysicalExpr>, alias: impl Into<String>) -> Self {
85 let alias = alias.into();
86 Self { expr, alias }
87 }
88
89 /// Create a new projection expression from an expression and a schema using the expression's output field name as alias.
90 pub fn new_from_expression(

Callers

nothing calls this directly

Calls 3

collectMethod · 0.80
intoMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected