Skip to content

Commit

Permalink
Minor: Clarify usecase for LogicalPlan::recompute_schema (apache#10443
Browse files Browse the repository at this point in the history
)
  • Loading branch information
alamb authored and findepi committed Jul 16, 2024
1 parent 4e003b7 commit dfa6063
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions datafusion/expr/src/logical_plan/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,11 @@ impl LogicalPlan {
/// expressions. For example [`LogicalPlan::Filter`] schema is always the
/// same as its input schema.
///
/// This is useful after modifying a plans `Expr`s (or input plans) via
/// methods such as [Self::map_children] and [Self::map_expressions]. Unlike
/// [Self::with_new_exprs], this method does not require a new set of
/// expressions or inputs plans.
///
/// # Return value
/// Returns an error if there is some issue recomputing the schema.
///
Expand Down

0 comments on commit dfa6063

Please sign in to comment.