LuciferYang opened a new pull request, #41164: URL: https://github.com/apache/spark/pull/41164
### What changes were proposed in this pull request? As discussed in https://github.com/apache/spark/pull/40945#discussion_r1191804004 and https://github.com/apache/spark/pull/40945#discussion_r1191804004, `replicate()` is a very private method of `HdfsDataOutputStreamBuilder`, so this pr uses case match to further remove the use of reflection in `SparkHadoopUtil#createFile`. ### Why are the changes needed? Code simplification: remove reflection calls used for compatibility with Hadoop2. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GitHub Actions -- 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]
