I want to convert my Parquet file into CSV . Is there a way for the same as i am only able to find CSV to Parquet file and not vice versa.
val df = spark.read.parquet("infile.parquet")
df.write.csv("outfile.csv")
Both "infile.parquet" and "outfile.csv" should be locations on the hdfs file system.