-
Notifications
You must be signed in to change notification settings - Fork 154
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 Grants to BigQuery Materializations #212
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.
Thanks for pushing up the draft PR !!
This also serves as a nice outline of what most adapters will need to implement to make use of the grants
feature
…er/ct-717-grant-materialization
Co-authored-by: Anders <[email protected]>
…er/ct-717-grant-materialization
…dbt-labs/dbt-bigquery into er/ct-717-grant-materialization
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.
0/5 tests pass right now. The immediate root cause seems to be the replace logic for the privileges. I've worked through some of it but there seems to be more.
There may also be a bug in the grant/revoke logic as the version of test_model_grants
in this repo fails on an assertion error of grants matching.
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.
* Alt approach to grabbing + factoring info_schema region * add exception for blank location * Update dbt/adapters/bigquery/relation.py Co-authored-by: Doug Beatty <[email protected]> * point to existing branch * fix pre commit errors Co-authored-by: Emily Rockman <[email protected]> Co-authored-by: Doug Beatty <[email protected]>
…er/ct-717-grant-materialization
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 looks awesome curious if the location thing was the issue we were hitting last week?
resolves #198
Before merge
dev-requirements.txt
main
rather than a custom branchDescription
This is dependent on dbt-labs/dbt-core#5263
location
is required for the sql only approach but logic needs to be added around defaulting the location. Currently the working state has the location hard coded.Checklist
CHANGELOG.md
and added information about my change to the "dbt-bigquery next" section.