Skip to content

Commit

Permalink
Fix sql_to_gcs hook gzip of schema_file (#9140)
Browse files Browse the repository at this point in the history
  • Loading branch information
nullhack committed Jun 4, 2020
1 parent 533b143 commit 7696286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/google/cloud/operators/sql_to_gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,4 +292,4 @@ def _upload_to_gcs(self, files_to_upload):
hook.upload(self.bucket, tmp_file.get('file_name'),
tmp_file.get('file_handle').name,
mime_type=tmp_file.get('file_mime_type'),
gzip=self.gzip if tmp_file.get('file_name') == self.schema_filename else False)
gzip=self.gzip if tmp_file.get('file_name') != self.schema_filename else False)

0 comments on commit 7696286

Please sign in to comment.
  翻译: