michotross257 opened a new issue #20437:
URL: https://github.com/apache/airflow/issues/20437


   ### Apache Airflow Provider(s)
   
   google
   
   ### Versions of Apache Airflow Providers
   
   `apache-airflow-providers-google==1.0.0`
   
   ### Apache Airflow version
   
   2.0.0
   
   ### Operating System
   
   Debian GNU/Linux 10 (buster)
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### What happened
   
   Within the `execute` method of `BigQueryToGCSOperator`, a deprecated arg – 
namely `bigquery_conn_id` – is being passed to `BigQueryHook`'s init method and 
causing a warning.
   
   **Relevant code**: 
https://github.com/apache/airflow/blob/85bedd03c33a1d6c6339e846558727bf20bc16f7/airflow/providers/google/cloud/transfers/bigquery_to_gcs.py#L135
   
   **Warning**:
   ```
   WARNING - 
/home/airflow/.local/lib/python3.7/site-packages/airflow/providers/google/cloud/transfers/bigquery_to_gcs.py:140
 DeprecationWarning: The bigquery_conn_id parameter has been deprecated. You 
should pass the gcp_conn_id parameter.
   ```
   
   ### What you expected to happen
   
   No `DeprecationWarning` should occur.
   
   ### How to reproduce
   
   Call the execute method of `BigQueryToGCSOperator`
   
   ### 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