We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a2495c commit 3e06acaCopy full SHA for 3e06aca
2 files changed
sqlmesh/core/engine_adapter/redshift.py
@@ -169,8 +169,6 @@ def _fetch_native_df(
169
170
@staticmethod
171
def _grant_object_kind(table_type: DataObjectType) -> str:
172
- if table_type == DataObjectType.VIEW:
173
- return "VIEW"
174
if table_type == DataObjectType.MATERIALIZED_VIEW:
175
return "MATERIALIZED VIEW"
176
return "TABLE"
tests/core/engine_adapter/test_redshift.py
@@ -151,7 +151,7 @@ def test_sync_grants_config_with_overlaps(
151
"table_type, expected_keyword",
152
[
153
(DataObjectType.TABLE, "TABLE"),
154
- (DataObjectType.VIEW, "VIEW"),
+ (DataObjectType.VIEW, "TABLE"),
155
(DataObjectType.MATERIALIZED_VIEW, "MATERIALIZED VIEW"),
156
],
157
)
0 commit comments