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

removed deprication for materialization-return and replaced it with a… #3893

Merged
merged 9 commits into from
Sep 22, 2021

Conversation

emmyoop
Copy link
Member

@emmyoop emmyoop commented Sep 16, 2021

resolves #3896

Description

Enact deprecation for materialization-return. Removed the deprecation warning and replaced it with an exception.

Looking for feedback to see if there's anything I'm overlooking (other than updating the CHANGELOG.md). I tested locally and ran all tests.

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt next" section.

@cla-bot cla-bot bot added the cla:yes label Sep 16, 2021
@emmyoop emmyoop marked this pull request as draft September 16, 2021 16:46
Copy link
Contributor

@gshank gshank left a comment

Choose a reason for hiding this comment

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

Looks good to me. I can't think of anything you're missing.

Copy link
Contributor

@jtcohen6 jtcohen6 left a comment

Choose a reason for hiding this comment

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

Looks great! Left one small comment that you can choose to take or leave.

Thanks also for splitting up the various deprecations into sub-tasks. Feeling much more organized :)

Let's hold off on merging this into develop until we cut v0.21.0-rc1.

Comment on lines 114 to 115
self.run_dbt(['run'], expect_pass=False)

Copy link
Contributor

Choose a reason for hiding this comment

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

If you want, you can check the results for the explicit error message you're expecting:

        results = self.run_dbt(['run'], expect_pass=False)
        assert 'did not explicitly return a list of relations' in results[0].message

I wouldn't say that's required here, though it could be a nice way to ensure we're providing users with a helpful error message, and not just failing silently.

@emmyoop emmyoop marked this pull request as ready for review September 21, 2021 14:06
@emmyoop emmyoop marked this pull request as draft September 21, 2021 14:10
@emmyoop emmyoop marked this pull request as ready for review September 22, 2021 18:43
Kyle Wigley and others added 2 commits September 22, 2021 13:53
@emmyoop emmyoop merged commit 74dda5a into develop Sep 22, 2021
@emmyoop emmyoop deleted the 2798_enact_deprecations branch September 22, 2021 19:35
@@ -1,3 +1,13 @@
## dbt 1.0.0 (Release TBD)
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable deprecation: materialization-return
3 participants