qgallet opened a new issue #20552:
URL: https://github.com/apache/airflow/issues/20552


   ### Apache Airflow Provider(s)
   
   google
   
   ### Versions of Apache Airflow Providers
   
   List of versions is the one provided by Cloud Composer image 
`composer-1.17.7-airflow-2.1.4`.
   (cf. 
https://cloud.google.com/composer/docs/concepts/versioning/composer-versions#images
 )
   
   Relevant here is `apache-airflow-providers-google==5.1.0`
   
   ### Apache Airflow version
   
   2.1.4
   
   ### Operating System
   
   macOS Big Sur 11.6.1 (irrelevant here)
   
   ### Deployment
   
   Composer
   
   ### Deployment details
   
   _No response_
   
   ### What happened
   
   Found on version 2.1.4 and reproduced locally on main branch (v2.2.3).
   
   When using `SFTPToGCSOperator` with `gzip=True`, no compression is actually 
performed, the files are copied/moved as-is to GCS.
   
   This happens because the `gzip` parameter isn't passed to the GCS Hook 
`upload()` call which then defaults to `False`.
   
   
   ### What you expected to happen
   
   I expect the files to be compressed when `gzip=True`.
   
   
   ### How to reproduce
   
   Create any `SFTPToGCSOperator` with `gzip=True` and upload a file.
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to