owlphi opened a new issue #12335:
URL: https://github.com/apache/airflow/issues/12335


   **Apache Airflow version**: 2.0.0b1
   
   ### Issue The google cloud storage hook is not backward compatible with the 
version 1.12.
   
   In the version 1.12 the method download has the following parameters: 
(bucket, object, filename) in this order. See [here](
   
https://airflow.apache.org/docs/stable/_api/airflow/contrib/hooks/gcs_hook/index.html#airflow.contrib.hooks.gcs_hook.GoogleCloudStorageHook.download)
   In the version 2.0.0b1 the method download has the following parameters 
(object_name, bucket_name, filename) in this order. See 
[here](https://github.com/apache/airflow/blob/master/airflow/providers/google/cloud/hooks/gcs.py#L259-L260)
   
   You can see that the order of the parameters have changed from version 1.12 
to 2.0.0b1. 
   
   **The problem:** 
   If we use the method download with positional parameters like in this 
operator: 
https://github.com/apache/airflow/blob/master/airflow/providers/google/cloud/transfers/gcs_to_bigquery.py#L267.
 It will fail
   


----------------------------------------------------------------
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.

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


Reply via email to