nehil_jain
08/24/2019, 12:35 AMderek_knox
08/26/2019, 1:39 PMnehil_jain
08/26/2019, 2:22 PMyannis_roussos
08/26/2019, 5:24 PMyannis_roussos
08/26/2019, 5:25 PMnehil_jain
08/26/2019, 5:26 PMnehil_jain
08/26/2019, 5:26 PMnehil_jain
08/26/2019, 5:27 PMyannis_roussos
08/26/2019, 5:33 PM--diff to what you currently have)
Manual steps in current version:
- Creating DBs/Schemas/Tables (done by other scripts)
- Creating Users (carefully curated process)
- Doing something for errors (e.g. a schema missing)
- Running the final SQL commands (we are still opting-in to check, copy/paste and run to be on the safe side)yannis_roussos
08/26/2019, 5:34 PMnehil_jain
08/26/2019, 5:35 PMnehil_jain
08/26/2019, 10:37 PMnehil_jain
08/26/2019, 10:54 PMSQL compilation error: Database 'DB_APPS' was not imported from a sharenehil_jain
08/26/2019, 10:55 PMGRANT IMPORTED PRIVILEGES ON DATABASE db_apps TO ROLE analyst;yannis_roussos
08/27/2019, 11:25 AMdb_apps DB as a shared database in your spec.
If it is not, you should define with shared: no
version: "1.0"
# Databases
databases:
- regular_db:
shared: no
- shared_db:
shared: yes
...
For databases, the IMPORTED PRIVILEGES privilege only applies to shared databases (i.e. databases created from a share). We use the shared boolean attribute when defining DBs on a spec in order to keep that information and use it when assigning privileges to a shared DB or objects that belong to a shared DB (as you need to have the imported privileges on the DB first)
More on SHARED DBs and Data Consumers: https://docs.snowflake.net/manuals/user-guide/data-share-consumers.htmlyannis_roussos
08/27/2019, 11:28 AMnehil_jain
08/27/2019, 12:32 PMnehil_jain
08/27/2019, 12:33 PMyannis_roussos
08/27/2019, 4:38 PMnehil_jain
08/27/2019, 6:59 PMnehil_jain
08/27/2019, 7:06 PMnehil_jain
08/27/2019, 7:07 PM- stitch:
can_login: no
member_of:
- loader
- stitcnehil_jain
08/27/2019, 7:07 PMnehil_jain
08/27/2019, 7:07 PMyannis_roussos
08/27/2019, 7:22 PMnehil_jain
08/27/2019, 7:23 PM