Create a new projection expression
(expr: Arc<dyn PhysicalExpr>, alias: impl Into<String>)
| 82 | impl 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( |