title: How to convert sql cursor output to spark dataframe in spark?
body: <p>I got an output using <code>cursor.fetchall()</code>.</p>
  <p>How can I convert the output into Spark dataframe and create a parquet file in Pyspark?</p>