Skip to content

Commit d156c33

Browse files
committed
fix: map materialized views to views when granting permissions
1 parent bac9a45 commit d156c33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlmesh/core/engine_adapter/bigquery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ def _get_grant_expression(self, table: exp.Table) -> exp.Expression:
13701370

13711371
@staticmethod
13721372
def _grant_object_kind(table_type: DataObjectType) -> str:
1373-
if table_type == DataObjectType.VIEW:
1373+
if table_type == DataObjectType.VIEW or table_type == DataObjectType.MATERIALIZED_VIEW:
13741374
return "VIEW"
13751375
return "TABLE"
13761376

0 commit comments

Comments
 (0)