Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to set a name to a csv file in sparklyr using spark_write_csv?

Tags:

r

sparklyr

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.

like image 329
Daniel Limaviegas Avatar asked Oct 25 '25 03:10

Daniel Limaviegas


1 Answers

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.

like image 141
user9597640 Avatar answered Oct 26 '25 16:10

user9597640