Skip to content

Commit

Permalink
Add common Snowflake grants troubleshooting tip
Browse files Browse the repository at this point in the history
  • Loading branch information
boxysean authored Dec 4, 2024
1 parent 0f51394 commit 4df5e2c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions website/docs/guides/snowflake-qs.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,23 @@ Now that you have a repository configured, you can initialize your project and s
```
- In the command line bar at the bottom, enter `dbt run` and click **Enter**. You should see a `dbt run succeeded` message.
:::warning
If you receive an insufficient privileges error on Snowflake at this point, it may be because your Snowflake role is not permitted to access the raw source data, to build target tables and views, or both. If this happens, you may consider troubleshooting by running the following commands in Snowflake using a role with sufficient privilieges (e.g., `ACCOUNTADMIN`):

Check warning on line 234 in website/docs/guides/snowflake-qs.md

View workflow job for this annotation

GitHub Actions / vale

[vale] website/docs/guides/snowflake-qs.md#L234

[custom.Typos] Oops there's a typo -- did you really mean 'e.g.'?
Raw output
{"message": "[custom.Typos] Oops there's a typo -- did you really mean 'e.g.'? ", "location": {"path": "website/docs/guides/snowflake-qs.md", "range": {"start": {"line": 234, "column": 345}}}, "severity": "WARNING"}

Check warning on line 234 in website/docs/guides/snowflake-qs.md

View workflow job for this annotation

GitHub Actions / vale

[vale] website/docs/guides/snowflake-qs.md#L234

[custom.LatinAbbreviations] Avoid Latin abbreviations: 'for example'. Consider using 'e.g' instead.
Raw output
{"message": "[custom.LatinAbbreviations] Avoid Latin abbreviations: 'for example'. Consider using 'e.g' instead.", "location": {"path": "website/docs/guides/snowflake-qs.md", "range": {"start": {"line": 234, "column": 345}}}, "severity": "WARNING"}
```
grant all on database raw to role <snowflake_role>;
grant all on database analytics to role <snowflake_role>;
grant all on schema raw.jaffle_shop to role <snowflake_role>;
grant all on schema raw.stripe to role <snowflake_role>;
grant all on all tables in database raw to role <snowflake_role>;
grant all on future tables in database raw to role <snowflake_role>;
```
Note to replace `<snowflake_role>` with the role you intend to use. If you launched dbt Cloud with Partner Connect, then this role will be `pc_dbt_role`.
:::
## Build your first model
You have two options for working with files in the dbt Cloud IDE:
Expand Down

0 comments on commit 4df5e2c

Please sign in to comment.