This is an automated email from the ASF dual-hosted git repository.
comphead 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 442d9bfcc5 Remove deprecated from_plan function (#12265)
442d9bfcc5 is described below
commit 442d9bfcc5f8706a15e92f16a6fbc5c108c97a78
Author: Piotr Findeisen <[email protected]>
AuthorDate: Sat Aug 31 23:18:54 2024 +0200
Remove deprecated from_plan function (#12265)
* Remove deprecated from_plan function
Deprecated since 31.0.0.
* empty
---
datafusion/expr/src/utils.rs | 31 -------------------------------
1 file changed, 31 deletions(-)
diff --git a/datafusion/expr/src/utils.rs b/datafusion/expr/src/utils.rs
index c4c6b076e5..9b64bca812 100644
--- a/datafusion/expr/src/utils.rs
+++ b/datafusion/expr/src/utils.rs
@@ -679,37 +679,6 @@ where
err
}
-/// Returns a new logical plan based on the original one with inputs
-/// and expressions replaced.
-///
-/// The exprs correspond to the same order of expressions returned by
-/// `LogicalPlan::expressions`. This function is used in optimizers in
-/// the following way:
-///
-/// ```text
-/// let new_inputs = optimize_children(..., plan, props);
-///
-/// // get the plans expressions to optimize
-/// let exprs = plan.expressions();
-///
-/// // potentially rewrite plan expressions
-/// let rewritten_exprs = rewrite_exprs(exprs);
-///
-/// // create new plan using rewritten_exprs in same position
-/// let new_plan = from_plan(&plan, rewritten_exprs, new_inputs);
-/// ```
-///
-/// Notice: sometimes [from_plan] will use schema of original plan, it don't
change schema!
-/// Such as `Projection/Aggregate/Window`
-#[deprecated(since = "31.0.0", note = "use LogicalPlan::with_new_exprs
instead")]
-pub fn from_plan(
- plan: &LogicalPlan,
- expr: &[Expr],
- inputs: &[LogicalPlan],
-) -> Result<LogicalPlan> {
- plan.with_new_exprs(expr.to_vec(), inputs.to_vec())
-}
-
/// Create field meta-data from an expression, for use in a result set schema
pub fn exprlist_to_fields<'a>(
exprs: impl IntoIterator<Item = &'a Expr>,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]