datafusion_expr::logical_plan::builder

Function project

Source
pub fn project(
    plan: LogicalPlan,
    expr: impl IntoIterator<Item = impl Into<Expr>>,
) -> Result<LogicalPlan>
Expand description

Create Projection

ยงErrors

This function errors under any of the following conditions:

  • Two or more expressions have the same name
  • An invalid expression is used (e.g. a sort expression)