title: Reading gzipped parquet files from spark
body: <p>I have a parquet file i am reading with spark:</p>
  <pre><code>SparkSession.builder()
      .appName(&quot;test&quot;)
      .config(&quot;spark.sql.parquet.compression.codec&quot;, &quot;gzip&quot;)
      .read().parquet(resourcePath)
  </code></pre>
  <p>This is the code snippet used to read the parquet file.<br>
  When the file is not compressed all goes fine, but when i gzip it:</p>
  <pre><code>gzip fileName.parquet
  </code></pre>
  <p>Then i get a RuntimeException:<br></p>
  <pre><code>is not a Parquet file. expected magic number at tail [80, 65, 82, 49] but found [44, 64, 91, 0]
  </code></pre>
  <p>but gzip format should be supported, it s supported, what am i doing wrong here?</p>