Skip to content

Commit

Permalink
[docs][insights] Add reference to Snowflake docs when setting up quer…
Browse files Browse the repository at this point in the history
…y history access (#17649)

## Summary

Adds a link to Snowflake docs with more detailed instructions on setting
up the query history table access
  • Loading branch information
benpankow authored Nov 2, 2023
1 parent ef98a86 commit 51d50e2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ This allows you to add a comment to every query recorded in Snowflake's `query_h

The last step is to create a Dagster pipeline that joins asset observation events with the Snowflake query history and calls the Dagster Cloud ingestion API.

To do this, you'll need a Snowflake resource (<PyObject module="dagster_snowflake" object="SnowflakeResource" />) that can query the `query_history` table. For example:
To do this, you'll need a Snowflake resource (<PyObject module="dagster_snowflake" object="SnowflakeResource" />) that can query the `snowflake.account_usage.query_history` table. For more information on granting access to this table, see the [Snowflake documentation](https://docs.snowflake.com/en/sql-reference/account-usage#enabling-the-snowflake-database-usage-for-other-roles).

Once you have credentials for an account with access, you can set up a resource like the following:

```python
from dagster_snowflake import SnowflakeResource
Expand Down

1 comment on commit 51d50e2

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for dagster-docs ready!

✅ Preview
https://dagster-docs-ng1r8tgig-elementl.vercel.app
https://master.dagster.dagster-docs.io

Built with commit 51d50e2.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.