Skip to main content
The Snowflake Target Connector is a robust tool designed to facilitate the seamless integration of Change Data Capture (CDC) updates into Snowflake data warehouses. Leveraging Snowpipe streaming functionality, this connector efficiently streams CDC updates into Snowflake, where they are written as inserts. Subsequently, a dynamic table is employed to construct a copy of the source table, ensuring real-time data replication.

Key Features

  • CDC Streaming: utilizes Snowpipe streaming to deliver real-time changes from the source system.
  • Insert Operation: writes CDC updates as inserts into the target Snowflake database, preserving the full change history.
  • Dynamic Table: constructs a dynamic table to mirror the source table, enabling easy access to replicated data.
  • Time Travel Support: retains historical data for time travel queries, facilitating data analysis and auditing.
  • Key-Pair Authentication: relies on Snowflake’s key-pair authentication mechanism — no passwords.
  • Schema evolution: new columns are added automatically as the source schema evolves.

Prerequisites

  • A Snowflake account where you wish to sync your data.
  • A role with the required permissions on the target database and schema:
    • USAGE on the database and schema
    • USAGE on the warehouse used to run the connector
    • CREATE TABLE on the schema
    • CREATE DYNAMIC TABLE on the schema
    • INSERT, UPDATE, DELETE on target tables
  • A key pair (no passphrase) for authentication. To set it up:
    1. Generate the key pair:
    2. Register the public key on the Snowflake user:
    3. Copy the private key without the header and footer lines:

Configuration

How It Works

For each subscription, Popsink creates tables in the target schema and applies CDC events to keep Snowflake in sync with the source. Updates are streamed as inserts via Snowpipe streaming, and a dynamic table exposes the latest state of each table. Schema evolution is handled automatically — new columns are added as the source schema evolves.