We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 322f4eb commit b0cc62eCopy full SHA for b0cc62e
src/snowflake/cli/_plugins/streamlit/manager.py
@@ -45,10 +45,7 @@ def grant_privileges(self, entity_model: StreamlitEntityModel):
45
if not entity_model.grants:
46
return
47
for grant in entity_model.grants:
48
- # Use connection context to ensure proper database/schema qualification
49
- fqn_with_context = entity_model.fqn.using_connection(self._conn)
50
- grant_sql = f"GRANT {grant.privilege} ON {entity_model.get_type().upper()} {fqn_with_context.sql_identifier} TO ROLE {grant.role}"
51
- self.execute_query(grant_sql)
+ self.execute_query(grant.get_grant_sql(entity_model))
52
53
def get_url(self, streamlit_name: FQN) -> str:
54
try:
0 commit comments