pub fn projection_schema(
input: &LogicalPlan,
exprs: &[Expr],
) -> Result<Arc<DFSchema>, DataFusionError>Expand description
Computes the schema of the result produced by applying a projection to the input logical plan.
§Arguments
input: A reference to the inputLogicalPlanfor which the projection schema will be computed.exprs: A slice ofExprexpressions 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.