Skip to content

Commit d1639da

Browse files
committed
fix: map materialized views to views when granting permissions
1 parent 4c14578 commit d1639da

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
@@ -1377,7 +1377,7 @@ def _get_grant_expression(self, table: exp.Table) -> exp.Expression:
13771377

13781378
@staticmethod
13791379
def _grant_object_kind(table_type: DataObjectType) -> str:
1380-
if table_type == DataObjectType.VIEW:
1380+
if table_type == DataObjectType.VIEW or table_type == DataObjectType.MATERIALIZED_VIEW:
13811381
return "VIEW"
13821382
return "TABLE"
13831383

0 commit comments

Comments
 (0)