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 dataset location config to BigQuery profile #969

Closed
drewbanin opened this issue Aug 31, 2018 · 5 comments
Closed

Add dataset location config to BigQuery profile #969

drewbanin opened this issue Aug 31, 2018 · 5 comments
Assignees
Labels
bigquery enhancement New feature or request good_first_issue Straightforward + self-contained changes, good for new contributors!
Milestone

Comments

@drewbanin
Copy link
Contributor

drewbanin commented Aug 31, 2018

Feature

Feature description

BigQuery doesn't allow data to be transferred between locations (eg. EU to US). To remedy this, dbt should allow a location config in BigQuery profiles. That value should be supplied when creating datasets here.

This can be implemented by setting the location argument in google.cloud.bigquery.client.Client() as described here. If I understand this correctly, all subsequent API actions will be location-aware. We will know this works when tables fetched from the BQ API have a location attribute that is not None.

The location field should be a parameter in a BigQuery profile.

Who will this benefit?

BQ users with their data in non-US regions.

@drewbanin drewbanin added enhancement New feature or request bigquery labels Aug 31, 2018
@jaredlt
Copy link

jaredlt commented Aug 31, 2018

For users googling, this will solve the error you get when dbt run returns Cannot read and write in different locations: source: EU, destination: US

@drewbanin drewbanin added the good_first_issue Straightforward + self-contained changes, good for new contributors! label Aug 31, 2018
@jthandy jthandy added this to the Stephen Girard milestone Oct 25, 2018
@drewbanin drewbanin modified the milestones: Stephen Girard, Grace Kelly Nov 2, 2018
@beckjake beckjake self-assigned this Nov 23, 2018
beckjake added a commit that referenced this issue Nov 26, 2018
…ocation

Add 'location' to google bigquery profile (#969)
@darrenhaken
Copy link
Contributor

darrenhaken commented Dec 24, 2018

Is this in now, if so how do I add it to my profile?

@drewbanin
Copy link
Contributor Author

drewbanin commented Dec 26, 2018

@darrenhaken this is currently unreleased, but will be going out in our Grace Kelly release in January, 2019. You can always consult our Milestones to understand which release a given issue is shipping with. Check the CHANGELOG for links to docs when the code is released

@paulooctavio
Copy link

Has the feature already been released?

@jtcohen6
Copy link
Contributor

jtcohen6 commented Jul 5, 2022

Definitely! https://docs.getdbt.com/reference/warehouse-profiles/bigquery-profile#dataset-locations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bigquery enhancement New feature or request good_first_issue Straightforward + self-contained changes, good for new contributors!
Projects
None yet
Development

No branches or pull requests

7 participants