title: How to write to parquet a Spark Dataframe?
body: <p>I got a spark application but when I try to write the dataframe to parquet the folder is created successfully but there is no data inside the folder just a file called "_SUCCESS" </p>
  
  <p>Here is my code:</p>
  
  <pre><code>def writeToParquet(dataFrame: DataFrame, path: String): Unit = {
      dataFrame.write.parquet(s"$path.parquet")
  }
  </code></pre>