I am using Spark SQL for reading parquet and writing parquet file.
But some cases,i need to write the DataFrame as text file instead of Json or Parquet.
Is there any default methods supported or i have to convert that DataFrame to RDD then use saveAsTextFile() method?