Skip to content

Commit

Permalink
branch-2.1: [fix](planner) FunctionCallExpr clone should be deep copy #…
Browse files Browse the repository at this point in the history
…44678 (#44711)

Cherry-picked from #44678

Co-authored-by: morrySnow <[email protected]>
  • Loading branch information
github-actions[bot] and morrySnow authored Nov 29, 2024
1 parent fc942c4 commit 6f868e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public FunctionCallExpr(FunctionCallExpr e, FunctionParams params) {

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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,9 @@ public static FunctionName read(DataInput in) throws IOException {
public int hashCode() {
return 31 * Objects.hashCode(db) + Objects.hashCode(fn);
}

@Override
public FunctionName clone() {
return new FunctionName(db, fn);
}
}

0 comments on commit 6f868e4

Please sign in to comment.