title: How to set Parquet file encoding in Spark
body: <p>Parquet documentation describe few different encodings <a href="https://github.com/Parquet/parquet-format/blob/master/Encodings.md" rel="noreferrer">here</a></p>
  
  <p>Is it changes somehow inside file during read/write, or I can set it?
  Nothing about it in Spark documentation. Only found <a href="https://www.slideshare.net/RyanBlue3/parquet-performance-tuning-the-missing-guide" rel="noreferrer">slides</a> from speach by Ryan Blue from Netflix team. He sets parquet configurations to sqlContext</p>
  
  <pre><code>sqlContext.setConf("parquet.filter.dictionary.enabled", "true")
  </code></pre>
  
  <p>Looks like it's not about plain dictionary encoding in Parquet files.</p>