spark
spark copied to clipboard
[SPARK-40216][SQL] Extract common `ParquetUtils.prepareWrite` method to deduplicate code in `ParquetFileFormat` and `ParquetWrite`
What changes were proposed in this pull request?
This pr is a refactor work, the main change is extract ParquetUtils.prepareWrite
method to eliminate duplicate code in ParquetFileFormat
and ParquetWrite
.
Why are the changes needed?
Eliminate duplicate code
Does this PR introduce any user-facing change?
No
How was this patch tested?
Pass GitHub Actions
cc @gengliangwang @cloud-fan Do you have time to help review? Thanks
@sadikovi can you take a look?
Yes, I will take a look shortly, thanks for letting me know.
Thanks @cloud-fan @sadikovi
Thanks @sadikovi ~ rebase to keep the code up to date, let's wait for GA
friendly ping @cloud-fan , should we merge this one?
thanks, merging to master!
Thanks @sadikovi @cloud-fan