We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40af4ec commit c3cffa3Copy full SHA for c3cffa3
sqlmesh/core/snapshot/evaluator.py
@@ -1793,6 +1793,9 @@ def promote(
1793
# Apply grants to the virtual layer view
1794
self._apply_grants(model, view_name, GrantsTargetLayer.VIRTUAL)
1795
1796
+ # Apply grants to the physical layer table
1797
+ self._apply_grants(model, table_name, GrantsTargetLayer.PHYSICAL)
1798
+
1799
def demote(self, view_name: str, **kwargs: t.Any) -> None:
1800
logger.info("Dropping view '%s'", view_name)
1801
self.adapter.drop_view(view_name, cascade=False)
0 commit comments