I\'m using Spark to get some data from a database and after that I create a csv file as an output for these data like this :
dataToWrite.repartition(1).write().format(&qu