8000 Use proper API call in bigtable.py's make_dataset by bardb · Pull Request #2618 · spotify/luigi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use proper API call in bigtable.py's make_dataset #2618

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

Merged
merged 1 commit into from
Jan 10, 2019
Merged

Use proper API call in bigtable.py's make_dataset #2618

merged 1 commit into from
Jan 10, 2019

Conversation

bardb
Copy link
Contributor
@bardb bardb commented Jan 9, 2019

Description

There used to be two ways to make a dataset in the Google BigQuery API: the correct new way and the obsolete old way. Of course our code used the obsolete old way. Google seems to have taken the obsolete old way down. This PR is to do it the correct new way instead.

Motivation and Context

The BigQuery make_dataset API has two fields, "datasetId" and "id", which could be used to specify a dataset name. The documentation for "id" says to use "datasetId" when creating a dataset. Our make_dataset method of course uses "id". I conjecture that Google used to use "id" if "datasetId" were missing, but changed their impl to match the docco recently.

The make_dataset method in bigquery.py of course uses the "id" approach rather than the "datasetId", so the conjectured change would have broken it.

https://jira.spotify.net/browse/INCIDENT-8998

Have you tested this? If so, how?

I confirmed this by cloning the relevant code and trying to create a dataset with it. The old way fails with the same characteristic message that our users have been seeing. The new way works.

@dlstadther
Copy link
Collaborator

@ulzha Could you take a look here - as I understand Spotify uses BigQuery?

The motivation and reasoning makes sense to me.

@kanterov
Copy link

I can confirm that it works, and I just did exactly the same fix.

@bardb
Copy link
Contributor Author
bardb commented Jan 10, 2019

Thanks! I don't have write access -- could someone merge it for me?

@dlstadther dlstadther merged commit 0d1c461 into spotify:master Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0