Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-49991][SQL] Make HadoopMapReduceCommitProtocol respect 'mapred…
…uce.output.basename' to generate file names ### What changes were proposed in this pull request? In 'HadoopMapReduceCommitProtocol', task output files are generated ahead instead of calling `org.apache.hadoop.mapreduce.lib.output.FileOutputFormat#getDefaultWorkFile`, which uses the `mapreduce.output.basename` as the prefix of output files. In this pull request, we modify the `HadoopMapReduceCommitProtocol.getFilename` method to also look up this config instead of using the hardcoded 'part'. ### Why are the changes needed? Given a custom file name is a useful feature for users. They can use it to distinguish files added by different engines, on different days, etc. We can also align the usage scenario with other SQL on Hadoop engines for better Hadoop compatibility. ### Does this PR introduce _any_ user-facing change? Yes, a Hadoop configuration 'mapreduce.output.basename' can be used in file datasource output files ### How was this patch tested? new tests ### Was this patch authored or co-authored using generative AI tooling? no` Closes apache#48494 from yaooqinn/SPARK-49991. Authored-by: Kent Yao <yao@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
- Loading branch information