This is an automated email from the ASF dual-hosted git repository. morrysnow pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push: new fe88ab2ec50 branch-3.0: [fix](planner) FunctionCallExpr clone should be deep copy #44678 (#44710) fe88ab2ec50 is described below commit fe88ab2ec507c4bba2fe143b342953822b37cbde Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> AuthorDate: Thu Nov 28 16:08:08 2024 +0800 branch-3.0: [fix](planner) FunctionCallExpr clone should be deep copy #44678 (#44710) Cherry-picked from #44678 Co-authored-by: morrySnow <zhangwen...@selectdb.com> --- .../src/main/java/org/apache/doris/analysis/FunctionCallExpr.java | 2 +- fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionName.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionCallExpr.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionCallExpr.java index 231b3f2f081..92eb1f5172a 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionCallExpr.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionCallExpr.java @@ -432,7 +432,7 @@ public class FunctionCallExpr extends Expr { protected FunctionCallExpr(FunctionCallExpr other) { super(other); - fnName = other.fnName; + fnName = other.fnName != null ? other.fnName.clone() : null; orderByElements = other.orderByElements; isAnalyticFnCall = other.isAnalyticFnCall; // aggOp = other.aggOp; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionName.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionName.java index b6feddb7d25..d0e695f6660 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionName.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionName.java @@ -183,4 +183,9 @@ public class FunctionName { public int hashCode() { return 31 * Objects.hashCode(db) + Objects.hashCode(fn); } + + @Override + public FunctionName clone() { + return new FunctionName(db, fn); + } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org