-
Notifications
You must be signed in to change notification settings - Fork 176
fix: Fix grants statements on materialized views #1267
base: main
Are you sure you want to change the base?
Conversation
Granting privileges on materialized views was failing because the generated SQL statement used the relation type `materialized_view` as part of the query instead of `materialized view` (with a space). This commit defines an override for this specific materialization in the and grant/revoke macros.
5712dcf to
953deed
Compare
|
Hello @AcidFlow @VersusFacit @colin-rogers-dbt , could you please take a look at this PR? This is an issue that requires a custom workaround from us. This PR has been open for some time and the fix here would resolve this persistent issue. |
Hey @kubikb ! As a workaround if this PR does not get enough attention, what we did internally was to copy the two macros changed in this PR, to our dbt project macros directory. They will then take precedence over the one in the |
|
Apologies for the delay here, we do want to get this merged in but will likely look to extend our functional tests to cover this case here |
|
This PR has been marked as Stale because it has been open with no activity as of late. If you would like the PR to remain open, please comment on the PR or else it will be closed in 7 days. |
resolves dbt-labs/dbt-adapters#558
Problem
Granting privileges on materialized views was failing because the generated SQL statement used the relation type
materialized_viewas part of the query instead ofmaterialized view(with a space).Solution
This PR defines an override for this specific materialization in the and grant/revoke macros to fix the generated query.
Checklist