When I'm trying to save a DataFrame as CSV to S3, the file is created with a name that is generated by Scala. For example -
file.coalesce(1).write.option("header", "true").csv(bucket + "/fileName.csv")
Creates a directory called fileName.csv within the bucket with a file called part-00000-955faf13-9fc3-4ccc-b0df-fb91cd701901-c000.csv
How can I change the file's name or save it with a specific name?