-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Avoid errors when missing column in yaml doc #4285
Avoid errors when missing column in yaml doc #4285
Conversation
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.
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.
@kadero Thank you for the contribution, as always!
@@ -95,3 +95,32 @@ def run_has_comments_pglike(self): | |||
def test_postgres_comments(self): | |||
self.run_has_comments_pglike() | |||
|
|||
class TestPersistDocsColumnMissing(BasePersistDocsTest): |
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.
👍 Confirmed this test fails without the fix, and passes with it
resolves #4151
Description
As described in the issue, we just need to update the postgres/redshift adapter.
I reproduced the issue described in the issue:
With the fix, the
dbt run
pass:And the wrong fiied is not persisted:
Checklist
CHANGELOG.md
and added information about my change