Installation
The Snowflake backend requires the Snowflake connector:Quick Start
From a Snowflake notebook (uses the active session automatically):- Connect to the Snowflake database and schema
- Discover all tables in the schema
- Infer column metadata (data types, semantic types, primary keys, time columns)
- Detect foreign key relationships
- Print a summary of the inferred metadata and links
Specifying Tables
Control which tables to include and customize their configuration:| Key | Description | Required |
|---|---|---|
name | The table name used in PQL queries | Yes |
source_name | The actual table name in Snowflake (if different from name) | No |
database | Override the default database for this table | No |
schema | Override the default schema for this table | No |
primary_key | Override the auto-detected primary key | No |
Connection Options
There are several ways to establish a Snowflake connection: 1. Active session (Snowflake notebooks):Database and Schema Defaults
Thedatabase and schema parameters set defaults for all tables. If not specified, the current database and schema from the active session are used.
Individual tables can override these defaults using the database and schema keys in their configuration dictionary.
Controlling Metadata Inference
Manual Edge Specification
Supported Snowflake Types
KumoRFM maps Snowflake data types as follows:| Snowflake Type | KumoRFM Dtype | Default Stype |
|---|---|---|
| NUMBER, DECIMAL, INT, BIGINT, FLOAT, DOUBLE | float or int | numerical |
| VARCHAR, STRING, TEXT, CHAR | string | categorical / text |
| BOOLEAN | bool | categorical |
| DATE, TIMESTAMP, TIMESTAMP* | date | timestamp |
| ARRAY | stringlist | multicategorical |
| VECTOR | floatlist | sequence |