Closed Github-dm-CDE closed 2 months ago
Please take a look at large block of owner_*
parameters on schema level: https://docs.snowddl.com/basic/yaml-configs/schema
Use these parameters to add additional grants for schema owner role.
At some point I considered granting it automatically, but fundamentally decided to avoid it.
Ahh, that was the missing piece of the puzzle! Thank you very much! Of course, the permissions and why they are not generated automatically also makes sense. Perhaps a small note in the SnowDDL documentation on dynamic tables would be helpful, in which it is pointed out to ensure that the schema parameters have been set correctly?
Describe the bug When creating dynamic tables, these are created with the
MY_DB__MY_SCHEMA__OWNER__S_ROLE
owner. Attempts to update the dynamic tables then fail, as they cannot see either the warehouse to be used or the base table to be used from another schema. Both the warehouse to be used and the schema to be used were created with theSNOWDDL_ADMIN
as owner. As soon as theMY_DB__MY_SCHEMA__OWNER__S_ROLE
is manually assigned the right to use the warehouse, for example, it can be seen and used by the dynamic table. Unfortunately, it is not entirely clear to us from the documentation how we can avoid this manual intervention and automate the whole thing.Expected behavior SnowDDL should automatically take care of the necessary permissions for the objects required to update dynamic tables.
Attach log
Attach YAML config (if applicable) PROD/LANDING/table/DIM_PAGE.yaml
PROD/MSTR/dynamic_table/DIM_PAGE_DY_V20240822.yaml