Skip to content

Commit 0446873

Browse files
committed
fix: map materialized views to views when granting permissions
1 parent 591bbfb commit 0446873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)