Function datafusion_expr::logical_plan::projection_schema

source ·
pub fn projection_schema(
    input: &LogicalPlan,
    exprs: &[Expr],
) -> Result<Arc<DFSchema>>
Expand description

Computes the schema of the result produced by applying a projection to the input logical plan.

§Arguments

  • input: A reference to the input LogicalPlan for which the projection schema will be computed.
  • exprs: A slice of Expr expressions representing the projection operation to apply.

§Returns

A Result containing an Arc<DFSchema> representing the schema of the result produced by the projection operation. If the schema computation is successful, the Result will contain the schema; otherwise, it will contain an error.