AngersZhuuuu opened a new pull request, #53128:
URL: https://github.com/apache/spark/pull/53128
### What changes were proposed in this pull request?
EnsureRequirements reorderJoinPredicates will create a new node, should use
copy
```
private def reorderJoinPredicates(plan: SparkPlan): SparkPlan = {
plan match {
case ShuffledHashJoinExec(
leftKeys, rightKeys, joinType, buildSide, condition, left, right,
isSkew) =>
val (reorderedLeftKeys, reorderedRightKeys) =
reorderJoinKeys(leftKeys, rightKeys, left.outputPartitioning,
right.outputPartitioning)
ShuffledHashJoinExec(reorderedLeftKeys, reorderedRightKeys, joinType,
buildSide, condition,
left, right, isSkew)
case SortMergeJoinExec(leftKeys, rightKeys, joinType, condition, left,
right, isSkew) =>
val (reorderedLeftKeys, reorderedRightKeys) =
reorderJoinKeys(leftKeys, rightKeys, left.outputPartitioning,
right.outputPartitioning)
SortMergeJoinExec(reorderedLeftKeys, reorderedRightKeys, joinType,
condition,
left, right, isSkew)
case other => other
}
}
```
### Why are the changes needed?
Avoid tag missing after this process
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
### Was this patch authored or co-authored using generative AI tooling?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]