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

Include datasets with underscores when listing BigQuery datasets #1006

Merged
merged 3 commits into from
Sep 18, 2018

Conversation

beckjake
Copy link
Contributor

This is #954, with regression tests against the v0.10.1 state.

To get the tests to fail you actually have to remove the try/except here: https://github.com/fishtown-analytics/dbt/blob/554ecb0/dbt/adapters/bigquery/impl.py#L471-L475, it was suppressed incidentally as part of #856. This fix still skips a few get/create calls, so we should keep it! Thank you @k4y3ff!

@drewbanin drewbanin self-requested a review September 18, 2018 14:01
Copy link
Contributor

@drewbanin drewbanin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question, but this LGTM!

@@ -250,14 +250,6 @@ def call_already_exists(schema, table):
"already_exists": call_already_exists,
}

@classmethod
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this change germane to the bq underscore fix? Or was it just dead code? Looks like it never gets called

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found this dead code when I was trying to track down who called get_existing_schemas and what cared about what aspects, so I removed it as part of this rather than spend any mental energy on upkeep.

@drewbanin
Copy link
Contributor

can we also change the base of this PR to dev/guion-bluford?

@beckjake beckjake force-pushed the fix/bigquery-underscores branch 2 times, most recently from 1a804ea to 2416a70 Compare September 18, 2018 14:52
@beckjake beckjake merged commit 2a8f0b8 into dev/guion-bluford Sep 18, 2018
@beckjake beckjake deleted the fix/bigquery-underscores branch September 18, 2018 20:21
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.

2 participants