Skip to content

Commit 7696286

Browse files
authored
Fix sql_to_gcs hook gzip of schema_file (#9140)
1 parent 533b143 commit 7696286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airflow/providers/google/cloud/operators/sql_to_gcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,4 +292,4 @@ def _upload_to_gcs(self, files_to_upload):
292292
hook.upload(self.bucket, tmp_file.get('file_name'),
293293
tmp_file.get('file_handle').name,
294294
mime_type=tmp_file.get('file_mime_type'),
295-
gzip=self.gzip if tmp_file.get('file_name') == self.schema_filename else False)
295+
gzip=self.gzip if tmp_file.get('file_name') != self.schema_filename else False)

0 commit comments

Comments
 (0)