title: Saving Spark DataFrame as zip archive
body: <p>Currently we are saving DataFrames as gzip archives however one of our data consumers does not support this file format. Is there a way to save Spark Data Frame as zip archive?</p>
  
  <pre><code>val dfWriter = sourceDf.repartition(1)
    .write
    .format("com.databricks.spark.csv")
  
  if (archived)
    dfWriter.option("codec", "org.apache.hadoop.io.compress.GzipCodec")
  </code></pre>