-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
#3682 Changed how tables and views are generated to be able to use differen… #3691
Conversation
Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA. In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, don't hesitate to ping @drewbanin. CLA has not been signed by users: @AndreasTA-FF |
I'll ping here. Would be nice if someone looks at this. I will sign the agreement when we think this will eventually be merged :) |
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.
Thanks for this @AndreasTA-AW! The code looks good to me. Appreciate the ping, and sorry for the delay getting back to you.
As far as testing this change, I think a unit test in the style of these ones should be sufficient. How about something like:
def test_table_kms_key_name(self):
adapter = self.get_adapter('oauth')
mock_config = create_autospec(
RuntimeConfigObject)
config={'kms_key_name': 'some_key'}
mock_config.get.side_effect = lambda name: config.get(name)
expected = {
'kms_key_name': "'some_key'"
}
actual = adapter.get_table_options(mock_config, node={}, temporary=False)
self.assertEqual(expected, actual)
def test_view_kms_key_name(self):
adapter = self.get_adapter('oauth')
mock_config = create_autospec(
RuntimeConfigObject)
config={'kms_key_name': 'some_key'}
mock_config.get.side_effect = lambda name: config.get(name)
expected = {}
actual = adapter.get_view_options(mock_config, node={})
self.assertEqual(expected, actual)
After adding that test, could you:
- Pull changes from
develop
- Add a changelog entry below
## dbt 0.21.0 (Release TBD)
- Sign the CLA
The tests looks great to me, I'll add those and make sure they pass. I'll then finish the rest of the tasks you added. Thanks for looking in to it! |
Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA. In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, don't hesitate to ping @drewbanin. CLA has not been signed by users: @AndreasTA-FF |
2 similar comments
Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA. In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, don't hesitate to ping @drewbanin. CLA has not been signed by users: @AndreasTA-FF |
Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA. In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, don't hesitate to ping @drewbanin. CLA has not been signed by users: @AndreasTA-FF |
@AndreasTA-AW Will you be able to sign the CLA? The PR looks in good shape, so that's the only blocker to merging this in. |
Hi! |
@jtcohen6 Sorry for the delay, I got an OK to sign it now, so it should all be fixed. |
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.
Thanks for the contribution @AndreasTA-AW!
…o use differen… (dbt-labs#3691) * Changed how tables and views are generated to be able to use different options * 3682 added unit tests * 3682 had conflict in changelog and became a bit messy * 3682 Tested to add default kms to dataset and accidently pushed the changes
…t options
resolves #3682
Description
I added a new function called common where common options can be put, otherwise views and tables are separated from each other to be able to add either for both or a single one of them.
Not sure if it's good enough or what you say. I ran the tests but didn't touch them.
Checklist
CHANGELOG.md
and added information about my change to the "dbt next" section.