fhoppe-stroeer opened a new issue, #23049:
URL: https://github.com/apache/airflow/issues/23049
### Apache Airflow Provider(s)
google
### Versions of Apache Airflow Providers
apache-airflow-providers-google~=6.8.0
### Apache Airflow version
2.2.4
### Operating System
Ubuntu
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
_No response_
### What happened
BigQueryTableExistenceSensor giving DeprecationWarning for bigquery_conn_id
parameter even if this paramter is not used at all.
Furthermore the gcp_conn_id is not working.
### What you think should happen instead
Use parameter gcp_conn_id as default and not the bigquery_conn_id parameter.
### How to reproduce
check_table_exists = BigQueryTableExistenceSensor(
task_id="check_table_exists",
project_id=project_id,
dataset_id=dataset_id,
table_id=table_id,
dag=dag
)
result: "DeprecationWarning: The bigquery_conn_id parameter has been
deprecated. You should pass the gcp_conn_id parameter."
check_table_exists = BigQueryTableExistenceSensor(
task_id="check_table_exists",
project_id=PROJECT_ID,
dataset_id=DATASET_NAME,
table_id=TABLE_NAME,
gcp_conn_id="google_cloud_default",
dag=dag
)
result: airflow.exceptions.AirflowException: Invalid arguments were passed
to BigQueryTableExistenceSensor (task_id: check_table_exists). Invalid
arguments were: **kwargs: {'gcp_conn_id': 'google_cloud_default'}
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] 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]