Skip to content

Commit 78769fe

Browse files
committed
remove physical layer _apply_grants during promotion
(now fixed to be handled by migrate)
1 parent 24ea896 commit 78769fe

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sqlmesh/core/snapshot/evaluator.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,9 +1849,6 @@ def promote(
18491849
deployability_index = kwargs["deployability_index"]
18501850
is_snapshot_deployable = deployability_index.is_deployable(snapshot)
18511851

1852-
# Apply grants to the physical layer (referenced table / view) after promotion
1853-
self._apply_grants(model, table_name, GrantsTargetLayer.PHYSICAL, is_snapshot_deployable)
1854-
18551852
# Apply grants to the virtual layer (view) after promotion
18561853
self._apply_grants(model, view_name, GrantsTargetLayer.VIRTUAL, is_snapshot_deployable)
18571854

0 commit comments

Comments
 (0)