I am currently working on storing a spark DataFrame as a .csv file in blob storage on Azure. I am using the following code.
smtRef2_DF.dropDuplicates().coalesce(1).write
.mode("overwrite")
.format("com.databricks.spark.csv")
.option("header", "true")
.save(csvBlobStorageMount + "/Output/Smt/SmtRef.csv")
This works but it creates a SmtRef.csv folder where the actual .csv file is stored as part-00000-tid.csv. How do I specify the name of the actual .csv file?
Thanks in Advance