Snowflake

The Snowflake integration synchronizes metadata from your Snowflake datawarehouse into the data lineage graph.

Web App

Snowflake Integration

Fields

FieldValueExample
sourceThe name of the source, see sourcesmy-source
NameName for connectionSnowflake
NamespaceNamespace for the connection, see namespacesdefault
accountSnowflake account, the characters in front of .snowflakecomputing.comhujwihs-hab96881
userDatabase user
roleSnowflake role to useREAD_ONLY
warehouseSnowflake warehouse to useCOMPUTE_WH
databaseSnowflake database
schemaSnowflake schema to use (optional)
passwordDatabase password

Python Library

The Redshift integration can be run as a standalone python library to extract data lineage from your instance of Redshift.

The library is available via pip

pip install grai_source_snowflake

More information about the API is available here.

Example

The library is split into a few distinct functions but if you only wish to extract nodes/edges you can do so as follows:

  from grai_source_postgres import SnowflakeIntegration
  from grai_schemas.v1.source import SourceV1
 
  source = SourceV1(name="my-source", type="my-type")
  snowflake_params = {
    "account": "hujwihs-hab96881",
    "user": "you@your_company.com",
    "password": "so_secret",
    "role": "READ_ONLY",
    "warehouse": "COMPUTE_WH",
    "database"="GRAI"
  }
 
  integration = SnowflakeIntegration(source=source, namespace="snowflake", **snowflake_params)
 
  nodes, edges = integration.get_nodes_and_edges()