-
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
BigQuery KMS should not be used on VIEWS #3682
Comments
Thanks for the report @AndreasTA-AW! I agree, We have an adapter method called That's called in a Jinja macro, Then that stringified version is included in the I can think of two possible resolutions here:
I'm leaning toward the second option. The first obfuscates differences, and it won't account for custom materializations. By contrast, mapping in the second ( This feels like a straightforward and self-contained change, so I'm going to mark it a good first issue. Would you be interested in contributing the fix for it? :) |
Thanks for the quick response! :) I will check if I can put some time to submit a PR, I’m a consultant and a father and all that :P but I can try to find some time. Also, wanna let u know that DBT is a great tool and it makes life a lot easier. Ofc it got some flaws, like everything, but it’s getting there! cheers! |
…fferen… (#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
…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
Describe the bug
If I add one kms key for the entire project that should be used for all models, like below. It will blow up, because you can't add KMS encryption to views. ( Unless I'm missing something here )
Steps To Reproduce
Add kms_key_name to the entire project or specific folder that contains views.
Expected behavior
It should skip views, and only add the encryption key to the tables.
System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using:
MAC
Additional context
Should probably be in its own issue, but I would like to be able to add default encryption key to the entire dataset that DBT creates. Maybe this is possible, but I didn't find anything about it :)
Cheers!
The text was updated successfully, but these errors were encountered: