Skip to main content

Snowflake (Snowpark)

The Snowflake (Snowpark) connection lets your Rapidminer® AI Cloud processes read data from and write data to Snowflake. It is built on Snowflake's Snowpark library and is available alongside the Snowflake (JDBC) connection. Compared with the JDBC connection, it loads metadata almost instantly and writes large tables much faster..

Prerequisites​

You need:

  • A Snowflake account identifier, for example xy12345.snowflakecomputing.com. You can find it in Snowsight in the account menu (bottom left), or take it from your Snowflake login URL. If you don't have Snowsight access, ask your Snowflake administrator.
  • A Snowflake user set up for one of the supported authentication methods (see Authentication).
  • A role with the privileges for what you want to do.
  • Permission to create connections in your Rapidminer AI Cloud project.

Tip: Use a dedicated Snowflake service user and warehouse for Rapidminer AI Cloud. This keeps credentials separate from personal accounts and makes compute cost easy to track.

Create the connection​

  1. In Rapidminer AI Cloud, open Connections and click Create Connection.

  2. Select Snowflake (Snowpark). You can find it under All or Databases.

    Create Connection catalogue with the Snowflake (Snowpark) tile

  3. Enter a Connection Name.

  4. Under Credentials, enter your Account and choose an Authenticator: Key Pair, Password or OAuth. Fill in the fields for that method (see Authentication).

  5. Under Session Defaults, enter the Warehouse and Database.

  6. Optionally, open Advanced Settings and enter a Role and Schema.

  7. Click Test Connection, then Save Connection. You can save once all required fields (marked *) are filled in.

A successful test confirms that Rapidminer AI Cloud can sign in and use the warehouse and database. It does not confirm access to every table you will use.

Session defaults and advanced settings​

FieldRequiredDescription
WarehouseYesThe virtual warehouse that runs your queries and is billed for the compute. Case-sensitive.
DatabaseYesThe default database for reads and writes. Case-sensitive.
RoleNoThe role to assume. If empty, Snowflake uses the user's default role.
SchemaNoThe default schema. Tables you name without a schema are looked up here.

Tip: Set the Role explicitly. The user's default role may not be the one that has access to your tables.

Authentication​

AuthenticatorBest forWhat you need
Key Pair (default)Service users and scheduled processesA private key file whose public key is registered on the Snowflake user
PasswordQuick setup with a token issued by SnowflakeA programmatic access token (PAT) for the Snowflake user
OAuthUsers signing in with their own identityA Snowflake Value Provider set up by your IT administrator

Key Pair​

  1. Create a certificate of your choosing. It can be encoded in PEM or P8 formats and encrypted.

  2. Extract the public key and ask your Snowflake administrator to register it on your user.

  3. In the connection, select Key Pair and fill in the fields:

    Connection form with the Key Pair authenticator

FieldRequiredDescription
AccountYesYour Snowflake account identifier
AuthenticatorYesKey Pair
UsernameYesThe Snowflake user that holds the registered public key
Private Key FileYesUpload the PKCS#8 PEM private key file (.p8)
Private Key PassphraseNoOnly for an encrypted key. Leave empty for an unencrypted key.

Password (programmatic access token)​

This method uses a Snowflake programmatic access token (PAT) instead of a password.

  1. Generate a PAT for the Snowflake user in Snowsight or with SQL. Copy it right away; Snowflake shows it only once.

  2. By default, Snowflake only accepts a PAT from a user covered by a network policy. Make sure the policy allows Rapidminer AI Cloud, or ask your Snowflake administrator.

  3. In the connection, select Password and fill in the fields:

    Connection form with the Password authenticator and the PAT field

FieldRequiredDescription
AccountYesYour Snowflake account identifier
AuthenticatorYesPassword
UsernameYesThe Snowflake user the token was generated for
PAT (Programmatic Access Token)YesThe token value

Every PAT has an expiry date. When it expires, generate a new token and update the connection.

OAuth​

With OAuth you sign in to Snowflake with your own identity. Rapidminer AI Cloud do not store your Snowflake password. For Snowflake OAuth, your IT administrator must set up a Value Provider; see About Value Providers.

Set up the connection​

  1. In the connection, select OAuth and choose the Snowflake Value Provider.

    Connection form with the OAuth authenticator and Value Provider

  2. Click Request Token and sign in to Snowflake when prompted. When the request succeeds, the form shows a green Access Token status and a Valid until time.

    Request Token panel with a valid access token

FieldRequiredDescription
AccountYesYour Snowflake account identifier
AuthenticatorYesOAuth
Value ProviderYesThe Snowflake Value Provider set up by your IT administrator

Supported operators​

Use this connection with the Read Snowflake and Write Snowflake operators and all operators that work on the data inside the process/exampleset such as operators for data preparation , modelling, validation. .

For SQL statements (Execute SQL) or In-Database processing, use a Snowflake (JDBC) connection. A process can use both connections.

Note: If Read Snowflake and Write Snowflake don't appear in your operator list, restart your workspace.

Also if you are migrating from JDBC to Snowpark connection, replace Read and Write Database operators with Read Snowflake and Write Snowflake.

Read data​

  1. Add Read Snowflake to your process.
  2. Select your Snowflake (Snowpark) connection.
  3. Choose the table to read.
  4. Run the process. The data is returned as an example set.

Write data​

  1. Add Write Snowflake to your process and connect your example set.

  2. Select your Snowflake (Snowpark) connection.

  3. Set the parameters:

    ParameterDescription
    Use Default SchemaWrites to the connection's default schema. Turn it off to choose another schema.
    Table NameThe target table.
    Overwrite ModeAppend adds rows to an existing table. Overwrite drops and recreates the table.
  4. Run the process.

Troubleshooting​

ProblemLikely causeWhat to do
Read Snowflake or Write Snowflake is missingThe workspace hasn't loaded the new operatorsRestart your workspace
Test Connection can't reach the accountAccount identifier incomplete; a bare locator such as xy12345 only works in Snowflake's default regionAdd the region and cloud, for example xy12345.eu-central-1
Key Pair: authentication failsPublic key not registered on the user, or a different keyAsk your administrator to run DESC USER <username> and compare RSA_PUBLIC_KEY_FP with your key
OAuth: Value Provider list is emptyNo Snowflake Value Provider exists, or you have no access to itAsk your IT administrator
OAuth: access token expiredThe Valid until time has passedClick Request Token again and save the connection
Password: authentication failsPAT expired or revoked, or no network policy allows Rapidminer AI CloudGenerate a new token; ask your administrator to check the network policy
"must have CREATE TABLE granted on SCHEMA"The table doesn't exist, Overwrite mode requires CREATE TABLE granted for your userHave the table created for you or get a role that have the grant
Warehouse or permission error when readingRole lacks USAGE on the warehouse or SELECT on the tableSet a Role with these privileges, or ask for the grants
Table not foundThe name resolves to another schema, or differs in caseUse the fully qualified name (DATABASE.SCHEMA.TABLE) or set the Schema

About Value Providers​

A Value Provider is a shared, centrally managed configuration in Rapidminer AI Cloud that holds the settings needed to obtain credentials from an external system. For Snowflake OAuth, it contains the details of the OAuth integration that your Snowflake administrator created. Connections refer to the Value Provider instead of storing those details themselves, so the setup is done once and reused by many users and connections.

Your IT administrator provisions the Value Provider. It requires:

  1. A Snowflake administrator to create an OAuth security integration in Snowflake.
  2. A Rapidminer AI Cloud administrator to create a Value Provider of type Snowflake under Data Assets > Value Providers > Create New, using the details of that integration.

Users don't create Value Providers themselves; they only select one in the connection. If none is available, contact your IT administrator.

Value Providers page with a Snowflake Value Provider