For AI agents: a Markdown version of this page is at https://docs.snowplow.io/docs/destinations/warehouses-lakes/snowflake.md. The index of all documentation pages is at https://docs.snowplow.io/llms.txt, and the index for this section is at https://docs.snowplow.io/docs/cdi/llms.txt.
Load Snowplow data to Snowflake
The Snowflake integration is available for Snowplow pipelines running on AWS, Azure, and GCP.
The Snowplow Snowflake integration allows you to load enriched event data (as well as failed events) into your Snowflake warehouse for analytics, data modeling, and more.
There are two options for this integration:
| Integration | AWS | Azure | GCP | Failed events support |
|---|---|---|---|---|
| Direct, streaming (Snowflake Streaming Loader) | ✅ | ✅ | ✅ | ✅ |
| Via Iceberg and Horizon Catalog (Lake Loader) | ✅ | ✅ | ✅ | ✅ |
What you will need
Connecting to a destination always involves configuring cloud resources and granting permissions. It's a good idea to make sure you have sufficient priviliges before you begin the setup process.
The list below is just a heads up. The Snowplow Console will guide you through the exact steps to set up the integration.
Keep in mind that you will need to be able to do a few things.
- Direct
- Via Iceberg
- Provide your Snowflake account locator URL, cloud provider and region
- Allow-list Snowplow IP addresses
- Generate a key pair for key-based authentication
- Specify the desired database and schema names, as well as a warehouse name
- Create a role with the following permissions:
USAGE,OPERATEon warehouse (for testing the connection and monitoring, e.g. as part of the Data Quality Dashboard)USAGEon databaseALLprivileges on the target schema
See Iceberg.
Getting started
- Direct
- Via Iceberg
You can add a Snowflake destination through the Snowplow Console. (For self-hosted customers, please refer to the Loader API reference instead.)
To create a loader, follow these steps in Console:
- Navigate to Destinations > Warehouses and lakes. Click Add destination and select Snowflake.
- Select a pipeline: choose the pipeline where you want to deploy the loader.
- Select your connection: create a new connection and follow the steps to provide all the necessary values, or choose an existing connection. You can only choose a connection that isn't already used by another loader.
- Select the type of events: enriched events or failed events
- Click Continue to deploy the loader
You can review active destinations and loaders by navigating to Destinations > Warehouses and lakes. Connections you create in this flow also appear under Settings > Connections, where you can review and edit them later.
Follow the instructions for Iceberg, using Snowflake Horizon Catalog as the REST catalog.
How loading works
The Snowplow data loading process is engineered for large volumes of data. In addition, our loader applications ensure the best representation of Snowplow events. That includes automatically adjusting the tables to account for your custom data, whether it's new event types or new fields.
- Direct
- Via Iceberg
For more details on the loading flow, see the Snowflake Streaming Loader reference page, where you will find additional information and diagrams.
For more details on the loading flow, see the Lake Loader reference page, where you will find additional information and diagrams.
Snowplow data format in Snowflake
The column types for self-describing events and entities depend on the integration option.
- Direct
- Via Iceberg
All events are loaded into a single table (events).
There are dedicated columns for atomic fields, such as app_id, user_id and so on:
| app_id | collector_tstamp | ... | event_id | ... | user_id | ... |
|---|---|---|---|---|---|---|
| website | 2025-05-06 12:30:05.123 | ... | c6ef3124-b53a-4b13-a233-0088f79dcbcb | ... | c94f860b-1266-4dad-ae57-3a36a414a521 | ... |
Snowplow data also includes customizable self-describing events and entities. These use schemas to define which fields should be present, and of what type (e.g. string, number).
For self-describing events and entities, there are additional columns, like so:
| app_id | ... | unstruct_event_com_acme_button_press_1 | contexts_com_acme_product_1 |
|---|---|---|---|
| website | ... | data for your custom button_press event (as a VARIANT object) | data for your custom product entities (as a VARIANT array) |
Note:
- "unstruct[ured] event" and "context" are the legacy terms for self-describing events and entities, respectively
- the
_1suffix represents the major version of the schema (e.g.1-x-y)
You can learn more in the API reference section.
All events are loaded into a single table (events).
There are dedicated columns for atomic fields, such as app_id, user_id and so on:
| app_id | collector_tstamp | ... | event_id | ... | user_id | ... |
|---|---|---|---|---|---|---|
| website | 2025-05-06 12:30:05.123 | ... | c6ef3124-b53a-4b13-a233-0088f79dcbcb | ... | c94f860b-1266-4dad-ae57-3a36a414a521 | ... |
Snowplow data also includes customizable self-describing events and entities. These use schemas to define which fields should be present, and of what type (e.g. string, number).
For self-describing events and entities, there are additional columns, like so:
| app_id | ... | unstruct_event_com_acme_button_press_1 | contexts_com_acme_product_1 |
|---|---|---|---|
| website | ... | data for your custom button_press event (as a structured OBJECT) | data for your custom product entities (as a structured ARRAY of OBJECT) |
Note:
- "unstruct[ured] event" and "context" are the legacy terms for self-describing events and entities, respectively
- the
_1suffix represents the major version of the schema (e.g.1-x-y)
You can learn more in the API reference section.
Check this guide on querying Snowplow data.