Skip to content

Deprecated arg is passed to BigQueryHook #20437

Closed

Description

@michotross257

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:

bigquery_conn_id=self.gcp_conn_id,

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?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. boring-cyborg commented on Dec 21, 2021

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template!

  2. eladkal commented on Dec 21, 2021

    @eladkal
    Contributor

    Feel free to open PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions