C3 AI Documentation Home

Snowflake Node

Load data from Snowflake into Visual Notebooks.

Prerequisites

Follow the steps below to add credentials for Snowflake. You must have a valid Snowflake URL, username, and password.

  1. Drag a Snowflake node onto the Visual Notebooks workspace
  2. Select the gear icon beside the Credential field Adding Snowflake credentials - step 1
  3. Select the plus sign in the upper right corner Adding Snowflake credentials - step 2
  4. Enter a name for the credential
  5. Enter the URL that you use to log into the Snowflake web interface
    • The URL should be in the following format: .snowflakecomputing.com
    • For more information about account identifiers, see the Snowflake documentation
  6. Enter the username and password you use to access Snowflake Adding Snowflake credentials - step 3

Configuration

FieldDescription
Name Default: SnowflakeA user-specified node name displayed in the workspace
Credential RequiredThe information needed to access Snowflake data Select a saved credential from the dropdown menu. Select the gear icon to add a new credential or delete existing credentials.
Warehouse OptionalThe name of the Snowflake warehouse Select the warehouse from the auto-populated dropdown menu.
Database RequiredThe name of the desired Snowflake database Select the database from the auto-populated dropdown menu.
Schema RequiredThe name of the desired Snowflake schema Select the schema from the auto-populated dropdown menu.
Query RequiredThe data to upload Select the table you want to upload from the auto-populated dropdown menu or enter a SQL query that returns the desired data.

Node Inputs/Outputs

InputNone
OutputVisual Notebooks returns a table, called a dataframe, that contains all uploaded data. Columns are labeled and include a symbol that specifies the data type of that column.

Example dataframe output

Figure 1: Example dataframe output

Examples

  • Select the Snowflake database, schema, and table that contains the desired data.
  • Select "Run" to create a dataframe.

Example dataframe created from a Snowflake table

Figure 2: Example dataframe created from a Snowflake table

  • Select a Snowflake database and schema.
  • Write a query that returns the desired data.
    • In the example below, the query returns the "Lumens" and "Temperature" columns for the first ten rows of the "SNOWBULBMEASUREMENT" table.
  • Select "Run" to create a dataframe.

Example dataframe created from a Snowflake query

Figure 3: Example dataframe created from a Snowflake query

Was this page helpful?