kaxil commented on a change in pull request #3893: [AIRFLOW-2932]
GoogleCloudStorageHook - allow compression of file
URL: https://github.com/apache/incubator-airflow/pull/3893#discussion_r217894117
##########
File path: airflow/contrib/operators/file_to_gcs.py
##########
@@ -37,6 +37,8 @@ class FileToGoogleCloudStorageOperator(BaseOperator):
:type google_cloud_storage_conn_id: str
:param mime_type: The mime-type string
:type mime_type: str
+ :type gzip: Allows for file to upload as gzip
+ :param gzip: boolean
Review comment:
It would also be good to add more detail to this parameter and also at Line
28 that says that optionally you can also compress the file before uploading.
An example, would be good.
https://github.com/apache/incubator-airflow/blob/e455e75107f84d5b47fa5b2cda1c68fb6016f0f4/airflow/contrib/operators/file_to_gcs.py#L28
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services