Spark SQL - How to write DataFrame to text file? : <p>I am using <code>Spark SQL</code> for reading parquet and writing parquet file.</p>

<p>But some cases,i need to write the <code>DataFrame</code> as text file instead of Json or Parquet.</p>

<p>Is there any default methods supported or i have to convert that DataFrame to <code>RDD</code> then use <code>saveAsTextFile()</code> method?</p>
