Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
projection_schema in datafusion::logical_expr - Rust
[go: Go Back, main page]

Function datafusion::logical_expr::projection_schema

source ·
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 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.