I need to write a data frame to a single csv file, and found out that I can use sdf_coalesce() to turn the file into a single partition. I want to find out if there's any way I can change the name of the csv file generated by spark_write_csv()?
Thanks in advance.
No. Filename is generated automatically to be unique among different tasks and it is not configurable. If you want specific name you have rename the output afterwards using utilities specific for the file system / storage solution in use.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With