Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional location to bigquery data transfer service (#15088) #20221

Merged

Conversation

bradleybonitatibus
Copy link
Contributor

@bradleybonitatibus bradleybonitatibus commented Dec 11, 2021

Description

This pull request addresses the issue of using BigQuery Data Transfer Service (DTS) for cross-region transfers.
DTS has the option of sending the location name / parent parameter in the request URL, but is currently not supported in the current operators. [1]

Main changes

  • Add location as Optional[str] to the BQ DTS hook and operators
  • Dynamically build name / parent resources based on location being not None in the instance of the DTS hook.

Reference

  1. https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rpc/google.cloud.bigquery.datatransfer.v1#google.cloud.bigquery.datatransfer.v1.DataTransferService

^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

@boring-cyborg boring-cyborg bot added area:providers provider:google Google (including GCP) related issues labels Dec 11, 2021
@bradleybonitatibus bradleybonitatibus changed the title Bugfix bigquery dts location (#15088) Add optional location to bigquery data transfer service (#15088) Dec 11, 2021
@malthe
Copy link
Contributor

malthe commented Dec 11, 2021

See #15088.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:google Google (including GCP) related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants