-
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
Use common columns for incremental schema changes #51
Conversation
a230017
to
cb026c9
Compare
29fea7d
to
fa7d257
Compare
fa7d257
to
64492a0
Compare
3aad884
to
1c1b9bf
Compare
@@ -87,6 +87,21 @@ def run_incremental_append_new_columns(self): | |||
self.list_tests_and_assert(select, exclude, expected) | |||
self.run_tests_and_assert(select, exclude, expected, compare_source, compare_target) | |||
|
|||
def run_incremental_append_new_columns_remove_one(self): |
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.
Add to test below:
@use_profile('bigquery')
def test__bigquery__run_incremental_append_new_columns(self):
self.run_incremental_append_new_columns()
self.run_incremental_append_new_columns_remove_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.
Indeed I missed that 😵💫
I updated it 👍
1c1b9bf
to
f72116c
Compare
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.
Last but not least — thank you for the thorough work @Kayrnt, and impressive coordination along the way!
* Use common columns for incremental schema changes * Review changes * Follow up change for lean return version
resolves dbt-labs/dbt-core#4144
Description
Using dbt-labs/dbt-core#4170 changes, the goal is to retrieve the intersection from existing table columns and the tmp table columns for the condition to avoid referencing columns that wouldn't be in one or the other table and lead to a failure of the incremental run.
Snowflake equivalent: dbt-labs/dbt-snowflake#38
Checklist
CHANGELOG.md
and added information about my change to the "dbt-bigquery next" section.