-
Notifications
You must be signed in to change notification settings - Fork 163
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 regression test case #188
Conversation
…s (commented out tests)
…mcknight/convert_override_test
…_bigquery_database_override test working on getting the rest to work for first test
…ormation from configs
…mcknight/convert_override_test
…mcknight/convert_override_test
…mcknight/convert_override_test
…TEST_DATABASE env
…mcknight/convert_override_test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, nearly there! Remember you'll want to include the fix as well when backporting to 1.1.latest
.
dbt-bigquery/dbt/adapters/bigquery/connections.py
Lines 558 to 560 in 8aaa6ab
# backwards compatibility: fill in with defaults if not specified | |
database = database or conn.credentials.database | |
schema = schema or conn.credentials.schema |
…mcknight/convert_override_test
@jtcohen6 made the suggested fixes any other extensions you think would be good for the test case? the two docs_generate tests that are failing will hopefully be fixed with gerda's PR. I know we aren't necessarily doing a changelog for the test conversions but does this regression test case deserve one? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test looks great! Confirmed that it fails without the change here, and succeeds with it:
dbt-bigquery/dbt/adapters/bigquery/connections.py
Lines 558 to 560 in 69d1bf2
# backwards compatibility: fill in with defaults if not specified | |
database = database or conn.credentials.database | |
schema = schema or conn.credentials.schema |
Just remember to pull in that change as well when backporting to 1.1.latest
#180
Description
checks for backwards compatibility in an edge case that database/schema information can be grabbed from default
Checklist
CHANGELOG.md
and added information about my change to the "dbt-bigquery next" section.