Skip to main content

Overview

To set up Warehouse Native connection with Snowflake, Statsig needs the following
  • Account Name
  • Database Name
  • Schema Name
  • Service User Name
  • If authenticating via login credentials:
    • Service User Password
  • If authenticating via key-pair authentication:
    • Private Key
    • Private Key Passphrase (Optional)
The service user needs the following permissions:
  • READ on any tables you are using for experimentation
  • USAGE/WRITE on a Statsig-specific Schema we’ll use to materialize temp tables and results

Account Name

For the Account Name field, please enter in the format of <id>.<region>.<provider>. So, your information may look something like this: xy12345.us-central1.gcp To get this information navigate to bottom left in your Snowflake console, as shown in the picture below and copy the link URL:
Frame 6
The copied URL will look something like this: https://xy12345.us-central1.gcp.snowflakecomputing.com You can extract information from here to get the required fields for Account Name, which for this example would be xy12345.us-central1.gcp.

Using <orgname>-<account_name> for Account Name

For the Account Name field, you can also enter your Snowflake account identifier, which typically takes the form <orgname>-<account_name>. To find the <orgname> in the Snowflake console, click on your account profile (usually at the bottom left) to view account details as shown below.
Snowflake account profile interface

Database and Schema Name

Provide the Schema and corresponding Database where Statsig will be able to materialize results
Frame 7

Key-Pair Authentication

To set up key-pair authentication, first follow the snowflake documentation to generate the private and public keys, and then set the public key on the service user. The private key can then be provided here
Key-pair authentication configuration interface

Boilerplate Setup SQL

To create a Statsig user with the sufficient privileges, as well as a Statsig staging Schema, run the following code in your Snowflake worksheet that has sysadmin and securityadmin roles. Replace <USER> and <PASSWORD> with your value, which you will copy over into our console. Depending on the scope of your data, you may want to adjust the size of the warehouse created.

What IP addresses will Statsig access data warehouses from?

See FAQ