Overview
Wirekite supports Snowflake as a target data warehouse for:- Schema Loading - Create target tables from Wirekite’s intermediate schema format
- Data Loading - Bulk load extracted data via Snowflake internal stage
- Change Loading (CDC) - Apply ongoing changes using MERGE operations
Snowflake loaders stage data through Snowflake’s internal stage using PUT commands, then use COPY INTO for high-performance bulk loading.
Prerequisites
Before configuring Snowflake as a Wirekite target, ensure the following requirements are met:Snowflake Configuration
- User Setup: Create a properly configured Snowflake user with appropriate privileges
- Warehouse: Ensure a virtual warehouse is available for loading operations
- Database & Schema: Create the target database and schema
- CLI Tools: Either install the SnowSQL command line tool or use the Wirekite cmdline tool
Internal Tables
Schema Loader
The Schema Loader reads Wirekite’s intermediate schema format (.skt file) and generates Snowflake-appropriate DDL statements for creating target tables.
The Schema Loader generates both base tables and merge tables (with
$wkm suffix) for CDC operations.Required Parameters
Path to the Wirekite schema file (
.skt) generated by the Schema Extractor. Must be an absolute path.Output file for CREATE TABLE statements. Includes both base tables and merge tables for CDC operations.
Output file for CHECK constraints. Snowflake doesn’t enforce many constraints, so you may choose not to load this file.
Output file for FOREIGN KEY constraints. You may elect not to load foreign keys if you don’t need them.
Absolute path to the log file for Schema Loader operations.
Optional Parameters
Output file for DROP TABLE IF EXISTS statements. Set to “none” to skip generation.
Output file for recovery table creation SQL. Set to “none” to skip.
When
true, generates merge tables ($wkm suffix) for CDC operations. Set to false if only doing data loads without change capture.Data Mover
The Data Mover uploads extracted data files to Snowflake’s internal stage using PUT commands for subsequent loading.Required Parameters
Path to a file containing the Snowflake connection string.
Directory where the Data Extractor wrote its files. These will be copied to the Snowflake staging area.
Absolute path to the log file for Data Mover operations.
Optional Parameters
Maximum number of parallel threads for uploading to Snowflake stage.
When
true, compresses files before uploading. Changes extension to .dgz.When
true, deletes local files after successful PUT to stage. Should typically be true in production to save disk space.Data Loader
The Data Loader reads data files from Snowflake’s internal stage and loads them into target tables using COPY INTO commands.Required Parameters
Path to a file containing the Snowflake connection string.
Path to the Wirekite schema file used by Schema Loader. Required for table structure information.
Absolute path to the log file for Data Loader operations.
Optional Parameters
Maximum number of parallel COPY threads. We recommend setting this to the number of CPUs on the host.
Set to
true if data was extracted using hex encoding instead of base64.File extension for data files to process (e.g., “dkt”, “dgz”).
Change Loader
The Change Loader applies ongoing data changes (INSERT, UPDATE, DELETE) to Snowflake tables using MERGE operations with shadow tables.The Change Loader uses a merging approach that stages intermediate data to Snowflake’s internal stage before executing MERGE statements.
Required Parameters
Path to a file containing the Snowflake connection string.
Directory where the Change Extractor wrote its files. These will be sourced for changes.
Working directory for intermediate files that are uploaded to Snowflake stage during merge operations.
Path to the Wirekite schema file for table structure information.
Absolute path to the log file for Change Loader operations.
Optional Parameters
Maximum number of change files to process in a single batch before executing MERGE operations.
Set to
true if change data was extracted using hex encoding.When
true, removes change files from inputDirectory after fully processing. Should typically be true in production to save disk space.Orchestrator Configuration
When using the Wirekite Orchestrator, prefix parameters withmover., target.schema., target.data., or target.change..
Example orchestrator configuration for Snowflake target:
