LuciferYang opened a new pull request #35890:
URL: https://github.com/apache/spark/pull/35890


   ### What changes were proposed in this pull request?
   SPARK-28057 adds `forceCopy` arg to private `mapChildren` method in 
`TreeNode` to realize the object clone(), and after SPARK-34989, the call 
corresponding to `forceCopy=false` is changed to use `withNewChildren`, and 
`forceCopy`  always true. So This PR deletes the arg `forceCopy` and the branch 
that cannot be reached when `forceCopy = true`. On the other hand, the private 
`mapChildren` is rename `mapChildrenWithForceCopy` in this pr because there is 
another public `mapChildren` method with the same signature in `TreeNode`.
   
   
   ### Why are the changes needed?
   Code simplification.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   
   ### How was this patch tested?
   Pass GA


-- 
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]

Reply via email to