title: Save compressed files into s3 and load in Athena
body: <p>Hi I am writing some program that will write in some files (with more processes at the time) like:</p>
  
  <pre><code>with gzip.open('filename.gz', 'a') as f:
      f.write(json.dumps(some dictionary) + '\n')
      f.flush()
  </code></pre>
  
  <p>After writing finishes I upload files with:</p>
  
  <pre><code>s3.meta.client(filename, bucket, destination, filename without .gz)
  </code></pre>
  
  <p>Than I want to query data from Athena, after MSCK REPAIR everything seems fine but when I try to select data my rows are empty. Does anyone know what am I doing wrong?</p>
  
  <p>EDIT: My mistake. I have forgot to add ContentType parameter to 'text/plain'</p>