Skip to content

Commit 480eedf

Browse files
eakmanrqnewtonapple
authored andcommitted
fix redshift view grant
1 parent 0d1ac06 commit 480eedf

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

sqlmesh/core/engine_adapter/redshift.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ def _fetch_native_df(
169169

170170
@staticmethod
171171
def _grant_object_kind(table_type: DataObjectType) -> str:
172-
if table_type == DataObjectType.VIEW:
173-
return "VIEW"
174172
if table_type == DataObjectType.MATERIALIZED_VIEW:
175173
return "MATERIALIZED VIEW"
176174
return "TABLE"

tests/core/engine_adapter/test_redshift.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_sync_grants_config_with_overlaps(
151151
"table_type, expected_keyword",
152152
[
153153
(DataObjectType.TABLE, "TABLE"),
154-
(DataObjectType.VIEW, "VIEW"),
154+
(DataObjectType.VIEW, "TABLE"),
155155
(DataObjectType.MATERIALIZED_VIEW, "MATERIALIZED VIEW"),
156156
],
157157
)

0 commit comments

Comments
 (0)