This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new df30f85172 Minor: Clarify  usecase for `LogicalPlan::recompute_schema` 
(#10443)
df30f85172 is described below

commit df30f85172452eafb8b09767089faf6749970fce
Author: Andrew Lamb <[email protected]>
AuthorDate: Sat May 11 06:33:23 2024 -0400

    Minor: Clarify  usecase for `LogicalPlan::recompute_schema` (#10443)
---
 datafusion/expr/src/logical_plan/plan.rs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/datafusion/expr/src/logical_plan/plan.rs 
b/datafusion/expr/src/logical_plan/plan.rs
index 7dca12f793..9832b69f84 100644
--- a/datafusion/expr/src/logical_plan/plan.rs
+++ b/datafusion/expr/src/logical_plan/plan.rs
@@ -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.
     ///


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to