[Bug] Using grants
on materialized_view
raises an error
#558
Labels
feature:materialized-views
Issues related to materialized views
pkg:dbt-bigquery
Issue affects dbt-bigquery
type:bug
Something isn't working as documented
Is this a new bug in dbt-bigquery?
Current Behavior
When using the
grants
configuration on a materialized view, the generated grant/revoke statement results in:and respectively:
This results in an error because BigQuery expect the relation type to be
materialized view
instead ofmaterialized_view
.See documentation
Expected Behavior
The grant/revoke statements execute successfully.
Steps To Reproduce
base_table.sql
:grants_materialized_view.sql
:Create the models using
dbt run
Models should be created and the described privileges granted but the following error occurs:
Relevant log output
Environment
Additional Context
Proposed fix: dbt-labs/dbt-bigquery#1267
The text was updated successfully, but these errors were encountered: