-
Notifications
You must be signed in to change notification settings - Fork 59
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 tests on incremental materialization #37
Conversation
Closing and reopening to trigger integration test, now that |
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 great @Kayrnt, just one comment.
Sorry the integration test is a bit more involved over in these plugins. We refactored the code for test_incremental_schema.py
over in dbt-core
, to keep it more narrowly focused, but that was after the adapter split-apart was complete.
There are some unrelated integration test failures (#36), we can ignore those for the purposes of this PR
@@ -91,6 +91,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.
This just needs to be added down below as well:
@use_profile('redshift')
def test__redshift__run_incremental_append_new_columns(self):
self.run_incremental_append_new_columns()
self.run_incremental_append_new_columns_remove_one()
5056746
to
9ed3474
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.
Failing tests are unrelated; the relevant test is passing. LGTM!
resolves dbt-labs/dbt-core#4144
Description
Following dbt-labs/dbt-core#4170, it makes sense to add a dedicated tests to avoid regression on that change for Redshift integration.
I didn't edited the changelog as it only affects the tests.
Checklist
CHANGELOG.md
and added information about my change to the "dbt-redshift next" section.