Skip to main content

Snowflake Data Exchange Agent

Python

The Data Exchange Agent is the Worker component of the Cloud Data Migration solution. It connects to source databases (SQL Server, Amazon Redshift, Teradata, Oracle), extracts data, and uploads it to Snowflake stages for ingestion by the Data Migration Orchestrator (snowflake-data-migration-orchestrator).

The same worker process also executes Cloud Data Validation tasks (data_validation) when the orchestrator schedules them. That path relies on the optional snowflake-data-validation package being installed in the worker environment (see the orchestrator documentation for creating validation workflows and JSON configuration).

Redshift row checksum gate

For orchestrator rowChecksumGate tasks, Redshift uses two exact 60-bit limb sums on both source and Snowflake target. Standard integer/decimal cells on both sides and framed keys that fit 65,535 bytes use one MD5 per row; text and other compared types, wide/unbounded values, wide keys and custom normalization keep the overflow-safe nested-MD5 fallback. Ordinary L3 signature extraction is unchanged. Deploy one consistent worker image for a new gate run. See the gate contract.

Installation

pip install snowflake-data-exchange-agent

For Teradata sources using the native teradatasql driver (recommended over ODBC when you can use it), install the optional extra:

pip install snowflake-data-exchange-agent[teradata]

For Oracle sources using python-oracledb in thin mode (no Instant Client or ODBC required for typical EZ Connect), install the optional extra:

pip install snowflake-data-exchange-agent[oracle]

If oracledb is not installed, the agent falls back to Oracle ODBC + pyodbc (odbc_driver must match pyodbc.drivers()). Connections always try oracledb first when that package is present (same pattern as Teradata / teradatasql).

Legacy accounts (thick mode): thin mode cannot authenticate accounts whose password is stored only with the old 10G verifier — it raises DPY-3015: password verifier type 0x939 is not supported by python-oracledb in thin mode. For those, enable thick mode so oracledb uses the Oracle Client (OCI) libraries, which support the legacy verifier. This needs only the Oracle Instant Client "Basic" libraries on the host (no unixODBC or registered ODBC driver):

[connections.source.oracle]
oracle_connection_mode = "basic"
host = "oracle-host.example.com"
port = 1521
database = "FREEPDB1"
username = "sdv_user"
password = "secret"
oracle_thick_mode = true
# Optional: omit to rely on LD_LIBRARY_PATH / the system library search path.
oracle_client_lib_dir = "/home/user/oracle/instantclient_21_1"

The Instant Client is just an unzipped archive (no sudo/install step). Thick mode is process-global, so once enabled every Oracle connection in the agent process uses it.

For local development against the SnowConvert CLI worker venv, scripts/install-into-cli-venv.sh installs the [oracle] extra. SnowConvert Desktop must install snowflake-data-exchange-agent[oracle] for Oracle migrations until the desktop installer is updated to match.

Python Version: 3.11 or higher

Usage

The agent provides two subcommands: run (default) and test.

# Start with a configuration file
data-exchange-agent run -c <configuration-file-path>

# Start with default configuration.toml in current directory
data-exchange-agent run

# Omitting the subcommand defaults to 'run' (backward compatible)
data-exchange-agent -c <configuration-file-path>

# Custom parallelism
data-exchange-agent run --max-parallel-tasks 8

# Custom base directory for exported files (overrides config)
data-exchange-agent run --local-results-directory /mnt/dea-exports

# Debug mode
data-exchange-agent run --debug

# Test all configured connections (executes SELECT 1)
data-exchange-agent test -c <configuration-file-path>

Doctor connection test failures

data-exchange-agent doctor tests each source connection with SELECT 1 and reports the driver's error message when it fails. Some drivers raise an error with no message (seen with the native mssql-python SQL Server driver). The reason is then the exception's type plus the first error in its cause chain that has a message, for example DriverError (caused by OperationalError: Login timeout expired), or DriverError (the driver gave no error message) when none has one. The doctor row reads Source connection test failed: <connection>: <reason>.

Run Command Options

Flag Short Default Description
--config -c configuration.toml Path to the TOML configuration file.
--max-parallel-tasks -w from config Maximum number of parallel tasks.
--interval -i from config Interval (seconds) between task fetch attempts.
--local-results-directory from config Base directory for exported files before upload.
--debug -d off Enable debug mode.
--no-server off Ignored (compatibility). The agent no longer starts an HTTP server.
--port -p Ignored (compatibility). The agent no longer starts an HTTP server.

Worker Configuration

The Worker configuration file uses TOML format.

Section Property Type Description
Top Level selected_task_source String Currently should always be set to "snowflake_stored_procedure".
[application] max_parallel_tasks Integer Maximum number of tasks the worker will process in parallel (using threads).
[application] metadata_operation_concurrency Integer Optional. Maximum concurrent task-queue RPCs (PULL_TASKS, COMPLETE_TASK, FAIL_TASK, lease refresh) per agent process. Default 2. Do not change this in production. Real deployments may run many agent processes across machines against one metadata database, so the total load is this value times the number of processes; raising it increases TASK_QUEUE contention. E2E raises it safely because each lane runs a small, known number of short-lived processes against a dedicated per-run metadata database, aiming for about 20 in-flight calls per lane (ceil(20 / process_count) per process).
[application] task_fetch_interval Integer Interval (in seconds) between attempts to fetch new tasks from the Orchestrator.
[application] lease_refresh_interval Integer Optional. Interval (in seconds) between task lease renewals. Default 120.
[application] snowflake_database_for_metadata String Optional. Database where the orchestrator deployed the task queue (default SNOWCONVERT_AI). Must match the orchestrator's CUSTOM_SNOWFLAKE_DATABASE_FOR_METADATA. Set in TOML or CLI only — the worker does not read this from an environment variable at runtime (SPCS/docker entrypoints may copy the orchestrator env into TOML at container start).
[application] snowflake_schema_for_data_migration_metadata String Optional. Schema for PULL_TASKS / COMPLETE_TASK / FAIL_TASK (default DATA_MIGRATION). Must match the orchestrator's CUSTOM_SNOWFLAKE_SCHEMA_FOR_DATA_MIGRATION_METADATA. TOML/CLI only at runtime (same SPCS rendering note as database above).
[application] snowflake_schema_for_data_validation_metadata String Optional. Schema where data-validation objects (results stage, CSV_FILE_FORMAT) live (default DATA_VALIDATION). Must match the orchestrator's CUSTOM_SNOWFLAKE_SCHEMA_FOR_DATA_VALIDATION_METADATA. Resolution order: TOML/CLI → CUSTOM_SNOWFLAKE_SCHEMA_FOR_DATA_VALIDATION_METADATA env var → DATA_VALIDATION.
[application] local_results_directory String Optional. Base directory where each task's exported Parquet or CSV files are written before upload. Each run uses a subfolder task_<id>/<timestamp>. After a successful upload, that timestamp folder and the task_<id> parent (if empty) are removed so stale empty directories do not accumulate. When unset, files go under ~/.data_exchange_agent/result_data. Tilde (~) and relative paths are expanded at load time.
[application] stage_upload_parallel Integer Optional, 1–99. PARALLEL for each PUT issued by SFStageUploader to a Snowflake internal stage (threads per file), including worker signature Parquet landings that use that uploader. Other PUT builders (DV CSV results, signature-manifest hop) do not read this setting. When unset, the clause is omitted and Snowflake's default of 4 applies.
[application] debug_mode Boolean Optional. When true, sets worker log level to DEBUG. Validation queries are logged truncated at INFO and in full at DEBUG before execution. Default false.
[connections.source.*] Object Configuration for source system connections. The Worker typically requires an ODBC driver. See examples below.
[connections.target.snowflake_connection_name] connection_name String The name of the connection entry in the ~/.snowflake/config.toml file to use.

When selected_task_source is snowflake_stored_procedure, the worker issues CALL statements against the task-queue using application.snowflake_database_for_metadata and application.snowflake_schema_for_data_migration_metadata. For data-validation tasks it also resolves the results stage and CSV_FILE_FORMAT object using the validation schema resolution order above. These settings are independent of Snowflake connection session defaults (SNOWFLAKE_DATABASE, SNOWFLAKE_SCHEMA in the connection profile).

All [application] keys follow CLI → TOML → default precedence via ConfigManager, except validation schema which also falls back to CUSTOM_SNOWFLAKE_SCHEMA_FOR_DATA_VALIDATION_METADATA when the TOML key is unset.

Unrecognized top-level keys in configuration.toml emit a warning at load time (they are ignored). Use only the keys documented in this reference and in configuration_example.toml.

Inline Snowflake target connections (snowflake_password, snowflake_external_browser) validate account at load time. It may contain letters, numbers, underscores (_), hyphens (-) and dots (.), and must start and end with a letter or number. Both the <orgname>-<account_name> form, including account names with underscores such as MYORG-MY_ACCOUNT, and the account locator form such as xy12345.us-east-2.aws are accepted.

Environment variables

The worker reads a small set of environment variables in addition to TOML/CLI config. In SPCS, docker entrypoints often copy orchestrator CUSTOM_SNOWFLAKE_* values into TOML at startup so runtime resolution stays TOML-first.

Variable Default Description
CUSTOM_SNOWFLAKE_SCHEMA_FOR_DATA_VALIDATION_METADATA (see TOML) Fallback for validation metadata schema when application.snowflake_schema_for_data_validation_metadata is unset.
SNOWFLAKE_METADATA_STORAGE_MODE Unset When set to ICEBERG, the worker adjusts Iceberg-related metadata behavior. Must match the orchestrator deployment.
SNOWFLAKE_ROLE Unset Overrides the role of the named connection in [connections.target.snowflake_connection_name] (and the connection test in doctor). scai sets it from the project's resolved role, so stage reads and uploads run as the same role as the orchestrator.
SNOWFLAKE_WAREHOUSE Unset Overrides the warehouse of that named connection, as SNOWFLAKE_ROLE does the role. In SPCS (@SPCS_CONNECTION) it is the session warehouse, as before.
DM_IDLE_SHUTDOWN_MINUTES From TOML (60) Overrides [idle_shutdown].minutes when present in the environment.
DATA_EXCHANGE_AGENT_LOGS_DIR ~/.data_exchange_agent/logs Directory for rotating log files.
TPT_TBUILD_EXECUTABLE /opt/teradata/client/20.00/tbuild/bin/tbuild Path to Teradata TPT tbuild when using extraction.strategy: "tpt".
DEBUG_SINGLE_WORKER Unset When "1", runs in single-worker debug mode.
SECRET_MANAGERS_* See Secrets Resolver settings for external secret references in connection strings.

Snowflake SPCS injects SNOWFLAKE_ACCOUNT, SNOWFLAKE_HOST, SNOWFLAKE_WAREHOUSE, SNOWFLAKE_DATABASE, SNOWFLAKE_SCHEMA, and related service identity variables when the worker runs as a container service.

Example: SQL Server (Standard Authentication)

[connections.source.sqlserver]
username = "username"
password = "password"
database = "database_name"
host = "127.0.0.1"
port = 1433

For SQL Server CETAS extraction, use Azure SQL Managed Instance or SQL Server 2022+ with PolyBase. Azure SQL Database does not support CETAS; use cloud_direct there. Create the external data source and Parquet file format on the source, then add their names to the same connection:

[connections.source.sqlserver]
# Standard SQL Server connection fields above
cet_as_external_data_source = "MyBlobDataSource"
cet_as_file_format = "MyParquetFormat"
# cet_as_path_prefix = "migration/prod"
# cet_as_table_schema = "dbo"

SQL Server Iceberg extracts must use cet_as or cloud_direct. For Azure Blob cloud_direct, configure one supported authentication method:

[connections.target.blob]
container_name = "iceberg-landing"
# prefix = "migration/prod"  # optional path inside the container; isolates landing per run
account_name = "mystorageaccount"
use_default_credential = true
# Alternatively, set account_key or sas_token with account_name,
# or replace those fields with connection_string.

On SPCS there is no Azure managed identity, so use_default_credential alone fails. Use a SAS token, account key or connection string. The SPCS image reads CLOUD_DIRECT_ACCOUNT_NAME and CLOUD_DIRECT_USE_DEFAULT_CREDENTIAL from the service spec, and CLOUD_DIRECT_SAS_TOKEN, CLOUD_DIRECT_ACCOUNT_KEY and CLOUD_DIRECT_CONNECTION_STRING from Snowflake secret mounts.

Example: Apache Hive (HiveServer2)

Install snowflake-data-exchange-agent[hive] to use the native impyla driver. Native connections enable TLS by default (use_ssl = true), so HiveServer2 must accept TLS on the configured port. Only set use_ssl = false when deliberately connecting to a non-TLS endpoint; credentials and data then travel unencrypted. Native TLS verifies the server certificate using the certifi CA bundle by default. Set ca_cert to a PEM CA bundle when HiveServer2 uses a private CA. tls_insecure_skip_verify = false is the default; setting it to true disables certificate verification and logs a warning because credentials can be intercepted. On both driver paths, tls_insecure_skip_verify is ignored when use_ssl = false, and no certificate-verification warning is logged.

[connections.source.hive]
host = "hs2.example.com"
port = 10000
database = "sales"
username = "etl"
password = "your-password"
use_ssl = true

When impyla is unavailable or prefer_native_driver = false, the agent uses the Hive ODBC driver. With use_ssl = true, the agent enables SSL and maps ca_cert to TrustedCerts when verification is enabled. Setting tls_insecure_skip_verify = true instead enables the driver's insecure-certificate options. When ca_cert is unset, the ODBC driver uses its own trust configuration.

Example: Amazon Redshift (IAM Authentication)

[connections.source.redshift]
username = "demo-user"
database = "demo_db"
auth_method = "iam-provisioned-cluster"
cluster_id = "my-aws-cluster"
region = "us-west-2"
access_key_id = "your-access-key-id"
secret_access_key = "your-secret-access-key"

Example: Amazon Redshift (Standard Authentication)

Redshift connections prefer the native redshift_connector driver and fall back to ODBC when prefer_native_driver = false or the native package is unavailable. IAM and standard username/password modes are supported.

[connections.source.redshift]
username = "myuser"
password = "mypassword"
database = "mydatabase"
host = "my-cluster.abcdef123456.us-west-2.redshift.amazonaws.com"
port = 5439
auth_method = "standard"

TCP keepalive. Both the native driver and the ODBC fallback send TCP keepalive probes after 60 seconds of silence and every 15 seconds after that (4 unanswered probes before the connection is dropped). That keeps long-running Redshift statements alive through SPCS/NAT idle timeouts whose silent sockets would otherwise end in a broken pipe when the result is written. On the ODBC path you can override the keywords (KeepAlive, KeepAliveTime, KeepAliveIdle, KeepAliveInterval, KeepAliveCount) under [connections.source.redshift.extra_options].

Redshift UNLOAD session. When the orchestrator extracts with UNLOAD, the worker runs it on its own connection: after any USE the orchestrator sends, it sets enable_case_sensitive_identifier to true so the Parquet field names keep the case of the column aliases the orchestrator writes, then runs the UNLOAD and closes that connection. Other connections are unaffected. Inside that session a quoted name in the table configuration or in a raw whereClause must match the catalog's case (lower case for a table created with the flag off); a mismatch is a configuration error that Redshift reports. See the identifier case policy.

Example: Azure Synapse Analytics

Requires ODBC Driver 18 for SQL Server on the worker host. Use pool_type = "serverless" and database = "master" for regular or cloud_direct extraction when the orchestrator runs with --source-platform azure_synapse_serverless; the DEA still uses [connections.source.azure_synapse]. For serverless CETAS extraction, set database to the user database that hosts your EXTERNAL DATA SOURCE and EXTERNAL FILE FORMAT — master is rejected when cet_as_external_data_source is configured.

REGULAR extraction (default) — ODBC fetch, Parquet on the worker, PUT to the Snowflake internal stage. Orchestrator: omit extraction or "strategy": "regular".

[connections.source.azure_synapse]
host = "myworkspace.sql.azuresynapse.net"
database = "MyDedicatedPool"
port = 1433
username = "sql_user"
password = "your_password"
mode = "sql_auth"
pool_type = "dedicated"
# encrypt = true                    # true (default), false, or "strict" (TDS 8.0)
# trust_server_certificate = false

CETAS extraction — Synapse writes Parquet to Azure Blob; the orchestrator loads via an external stage. Orchestrator: "strategy": "cet_as" plus externalStage in workflow JSON. Create on Synapse ahead of time: scoped credential, external data source, and Parquet file format.

Cloud-direct extraction — The worker streams ODBC cursor results directly to S3, GCS, or Azure Blob via PyArrow (no local disk, no upload step). Orchestrator: "strategy": "cloud_direct" plus externalStage in workflow JSON. Configure [connections.target.s3], [connections.target.gcs], and/or [connections.target.blob] on the worker; the external stage must point at the same bucket/container prefix. S3 requires region_name (otherwise the client uses us-east-1). A container has no AWS profile, so set access_key_id and secret_access_key there; a local worker can use profile_name instead. See docs/data-exchange-agent/cloud-direct-classic.md in the repository.

[connections.source.azure_synapse]
host = "myworkspace.sql.azuresynapse.net"
database = "MyDedicatedPool"
port = 1433
username = "sql_user"
password = "your_password"
mode = "sql_auth"
pool_type = "dedicated"

cet_as_external_data_source = "MyBlobDataSource"
cet_as_file_format = "MyParquetFormat"
# cet_as_path_prefix = "migration/prod"
# cet_as_table_schema = "dbo"

Example: PostgreSQL (ODBC)

Use this block when the orchestrator schedules Cloud Data Validation (or migration) against a PostgreSQL source. Install a PostgreSQL ODBC driver on the worker host; see pyodbc.drivers() for the exact odbc_driver string if you need to pin one.

[connections.source.postgresql]
username = "my_user"
password = "my_password"
database = "my_database"
host = "postgres.example.com"
port = 5432
# odbc_driver = "PostgreSQL Unicode"  # optional

Example: Teradata

The agent supports two Teradata drivers and automatically selects the best one available:

  1. teradatasql (preferred) -- Pure Python driver. No OS-level ODBC installation required. Install with pip install teradatasql.
  2. ODBC fallback -- If teradatasql is not installed, the agent falls back to pyodbc with the Teradata ODBC driver. Set odbc_driver to the exact name returned by pyodbc.drivers().

When teradatasql is available, odbc_driver is ignored and no ODBC driver needs to be installed on the host. Use dbc_name when your Teradata COP / TDPID alias differs from host.

Older configs used driver_name for the ODBC driver label; that key still works but is deprecated in favor of odbc_driver.

[connections.source.teradata]
host = "your-teradata-host.example.com"
port = 1025
database = "tpcds"
username = "your_username"
password = "your_password"
# odbc_driver = "Teradata Database ODBC Driver 17.20"  # only needed for ODBC fallback
# dbc_name = "TDPID_ALIAS"  # optional; defaults to host
# authentication = "LDAP"  # optional logon mechanism: TD2 (default), TDNEGO, LDAP, KRB5, JWT, BEARER
#                          # applies to native teradatasql (logmech) and ODBC fallback (AuthMech)
# jwt_token = "..."        # JWT token (logdata); used only on the native teradatasql path when authentication = "JWT"
# bearer_token = "..."     # OAuth bearer token (logdata); used on the native path when authentication = "BEARER"
#
# L3 data validation: install HASH_MD5 UDF in the same database as `database` above,
# or once anywhere and set the validation workflow's hashMd5Function to DATABASE.HASH_MD5.
# See docs/data-migration-orchestrator/teradata-dv-prerequisites.md

# Optional: WRITE_NOS configuration for direct export to cloud object storage
# (S3, Azure Blob, or GCS). The orchestrator's `extraction.strategy` must be
# set to `"write_nos"` for the worker to use these settings.
#
# `write_nos_location_scheme` is one of `/s3/`, `/az/`, or `/gs/`.
# Provide credentials in exactly one of the three modes below.
#
# write_nos_location_scheme    = "/az/"
# write_nos_location_host      = "myaccount.blob.core.windows.net"
# Optional path segment after host (omit when Snowflake stage is bucket root):
# write_nos_location_container = "td-nos-exports"
#
# Mode 1 - Function mapping (recommended; credentials live on Teradata):
# write_nos_function_mapping = "nos_util.WRITE_NOS_FM"
#
# Mode 2 - Named AUTHORIZATION object (credentials live on Teradata):
# write_nos_authorization_name = "nos_util.DefAuth_Write"
#
# Mode 3 - Inline credentials (embedded in SQL; redacted in logs):
# write_nos_access_id  = "your_account_or_access_key_id"
# write_nos_access_key = "your_secret"
#
# Optional output overrides (defaults shown):
# write_nos_stored_as       = "PARQUET"
# write_nos_compression     = "SNAPPY"
# write_nos_max_object_size = "16MB"
# write_nos_overwrite       = "TRUE"
#
# Optional: TPT (Teradata Parallel Transporter). Use when the orchestrator sets
# `extraction.strategy` to `"tpt"`. Requires TTU (`tbuild`) on PATH or set
# `TPT_TBUILD_EXECUTABLE` to its absolute path. Intermediate delimited files and
# job scripts use `tpt_output_directory` / `tpt_log_directory` on the worker.
#
# tpt_output_directory = "/var/dea/tpt"
# tpt_log_directory    = "/var/log/dea/tpt"
# tpt_delimiter        = "|"
# tpt_max_sessions     = 4
# tpt_charset          = "UTF8"

Example: PostgreSQL

The agent supports PostgreSQL via ODBC. For bulk data_movement tasks, psql \copy is used by default (requires psql installed on the worker host and on PATH). If psql is not available, the agent falls back to ODBC parquet automatically. Set use_copy = false to always use ODBC.

[connections.source.postgresql]
username = "my_user"
password = "my_password"
database = "my_database"
host = "postgres.example.com"
port = 5432
# use_copy = false   # uncomment to always use ODBC parquet instead of psql \copy

Example: Oracle (ODBC)

Install an Oracle Instant Client and the matching ODBC driver on the worker host. Use pyodbc.drivers() to find the exact odbc_driver string if the default label below does not match your installation.

Basic mode uses EZ Connect: service name in database, host/port for the listener.

[connections.source.oracle]
oracle_connection_mode = "basic"
username = "my_user"
password = "my_password"
database = "ORCLPDB1"
host = "oracle.example.com"
port = 1521
odbc_driver = "Oracle in instantclient_21_1"
auto_detect_driver = false

TNS alias mode sets DBQ to a name from tnsnames.ora. When tns_admin is set, TNS_ADMIN is applied only for the duration of pyodbc.connect so the driver can resolve the alias.

[connections.source.oracle]
oracle_connection_mode = "tns_alias"
tns_name = "MY_ORACLE_SERVICE"
username = "my_user"
password = "my_password"
odbc_driver = "Oracle in instantclient_21_1"
auto_detect_driver = false
tns_admin = "/path/to/tns"

Connect descriptor mode passes a full net descriptor as DBQ (for advanced routing, LDAP alternatives, or paste-in from tnsnames.ora).

[connections.source.oracle]
oracle_connection_mode = "connect_descriptor"
connect_descriptor = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle.example.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCLPDB1)))"
username = "my_user"
password = "my_password"
odbc_driver = "Oracle in instantclient_21_1"
auto_detect_driver = false

Optional wallet_directory / wallet_password append common Oracle ODBC wallet attributes; TLS naming and LDAP directory options vary by driver — add driver-specific keys via extra options or extend configuration as needed.

In the Worker container, set ORACLE_WALLET_LOCATION to the wallet directory; the entrypoint renders it as wallet_directory, which the oracledb path passes as both config_dir and wallet_location.

DBMS_CLOUD (S3 export inside Oracle): set dbms_cloud_credential_name and dbms_cloud_file_uri_prefix on the Oracle source connection. For local development, use the ghcr.io/oracle/adb-free image (not Oracle Database 23ai Free XE), wallet + DataGrip steps, S3 credential SQL, and troubleshooting — see data-exchange-agent/docs/oracle-dbms-cloud-local-setup.md in the repository. Validate IAM first with scripts/test_s3_bucket_access.py.

Note: Only one source connection is needed. The Snowflake target connection should point to a valid entry in your ~/.snowflake/config.toml.

Custom Extraction Plugins

For Data Migration workflows, you can override how a source is extracted with your own Python class instead of the built-in extractors. A plugin receives the source connection fields and a query, runs the query against that source, and lands the result files where the migration expects them. This is useful for sources or drivers the agent does not support natively.

Steps to add a custom extractor:

  1. Write a class that subclasses FileSystemExtractionPlugin (recommended) or ExtractionPlugin (see below) and produces output in the canonical file format.
  2. Make the class importable by the worker — install it as a package into the same environment as the agent, or put it on the worker's PYTHONPATH.
  3. Add plugin_class (the fully-qualified dotted path) to the source connection in your worker config.
  4. Start the worker as usual. When a task for that source is processed, the plugin owns the entire extract-and-upload flow; the built-in extractor is not used.

Step 1 — write your plugin class. There are two ways to implement a plugin.

Option A — extend FileSystemExtractionPlugin (recommended) and implement only write_dataset. The base class validates the output, uploads it to the workflow target, and cleans up the local directory for you. A complete, runnable example that writes conforming Parquet with PyArrow:

import pyarrow as pa
import pyarrow.parquet as pq

from data_exchange_agent.plugins import FileSystemExtractionPlugin

class MyExtractor(FileSystemExtractionPlugin):
    def write_dataset(self, statement: str, output_dir: str, base_file_name: str) -> None:
        # self.connection holds the fields you configured for this source
        # (host, port, username, password, database, ...). For ODBC-based
        # sources a ready-to-use "connection_string" is also included.
        connection = my_driver.connect(self.connection["connection_string"])
        cursor = connection.cursor()
        cursor.execute(statement)

        column_names = [desc[0] for desc in cursor.description]
        rows = cursor.fetchall()
        # Preserve the source column names — the loader reads columns by name.
        table = pa.table(
            {name: [row[i] for row in rows] for i, name in enumerate(column_names)}
        )

        out_path = f"{output_dir}/{base_file_name}_001.parquet"
        pq.write_table(table, out_path, compression="snappy")

Replace my_driver with whatever client connects to your source. Everything else (uploading the Parquet, cleanup, and the output guard) is handled by the base class.

Option B — implement ExtractionPlugin directly when the data does not pass through the local filesystem (for example, a source-side EXPORT/UNLOAD that writes straight to cloud storage). Implement extract, which owns the full flow:

from data_exchange_agent.plugins import ExtractionPlugin

class MyDirectExtractor(ExtractionPlugin):
    def extract(self, statement: str) -> bool:
        # self.connection, self.context.destination, self.context.uploader are available.
        my_client.export_to_cloud(self.connection, statement, self.context.destination)
        return True

Constructor contract (called by the worker): __init__(self, connection, context) where connection is a dict of this platform's connection fields and context is an ExtractionContext with results_folder_path, base_file_name, destination (the upload target), uploader, and logger.

Your output must conform to the canonical file format so the migration's COPY INTO can load it:

  • Parquet (preferred): PyArrow/snappy defaults; one file named <base_file_name>_001.parquet; column schema derived from the query result. Prefer Parquet — it avoids all delimiter/encoding ambiguity.
  • CSV: field delimiter \x1f (unit separator), record delimiter \x1e (record separator), UTF-8, no header row; write NULL as an empty field. File name ends in .csv (or .csv.gz).

Files that do not match are misread or rejected at load time. The base class performs a lightweight guard (it fails the task if write_dataset produces no .parquet/.csv/.csv.gz file), but it cannot validate delimiters or schema — conformance is the plugin's responsibility.

Step 2 — make the class importable. Install it as a package into the same environment as the agent, or put it on the worker's PYTHONPATH, so the worker can import the dotted path you set next.

Step 3 — add plugin_class to the source connection. Your plugin receives this connection's configured fields as a dict (via self.connection). Only fields valid for that platform are allowed — the config rejects unknown keys — so you get the standard fields (host, port, username, password, database, ...), plus a ready-to-use connection_string for ODBC-based sources. For ODBC sources you can also stash extra key/values under [connections.source.<name>.extra_options].

[connections.source.sqlserver]
plugin_class = "acme_ext.my_extractor.MyExtractor"
# Standard fields for this platform — passed to your plugin as a dict.
username = "my_user"
password = "my_password"
database = "SampleStoreDB"
host = "sqlserver.example.com"
port = 1433

Security: plugin_class is read only from this worker configuration, never from a task. Loading it imports and runs your code in-process with the worker's privileges. Only configure classes you trust and control.

Step 4 — run the worker. Start the worker as usual (data-exchange-agent run -c configuration.toml). When a task for that source is processed, the plugin owns the entire extract-and-upload flow; the built-in extractor is not used.

Idle worker shutdown

Task sources with idle shutdown (supports_idle_shutdown on the adapter; today the Snowflake stored-procedure source): configure idle exit so the worker terminates after sustained genuinely idle operation — not merely an empty PULL_TASKS, but confirmed quiet for this worker's context (no active non-terminal leases for this agent_id, no near-term pullable work or recent queue churn for this affinity, healthy Snowflake connectivity). Before exit it runs a final confirmation pass, inserts WORKER_SHUTDOWN into SYSTEM_EVENT (orchestrator migration 0029), emits Snowhouse stop telemetry, then drains workers (lease refresher first, then bounded worker joins), flushes logs, closes Snowflake sessions, and exits via shared.runtime_forced_exit.forced_idle_process_exit (os._exit(0)). Other task sources ignore idle shutdown settings.

Canonical (worker TOML):

[idle_shutdown]
minutes = 60   # always on; use 10080 (one week) for long-lived local dev

Idle shutdown is always enabled (secure-by-default). Resolution: ConfigManager (CLI → TOML → defaults), then optional DM_IDLE_SHUTDOWN_MINUTES env override when present in os.environ.

Setting TOML key Env override Default
Idle window (minutes) idle_shutdown.minutes (ge=1) DM_IDLE_SHUTDOWN_MINUTES 60

Invalid or <=0 minutes (env) clamp to 60 with WARNING. TOML minutes must be >=1. INFO is logged when env minutes differ from the TOML/CLI/default base.

Apply migrations 0029 (SYSTEM_EVENT) and 0037 (worker pre-exit idle safety net) before running DEA with idle shutdown, or audit / safety checks fail. Idle shutdown rows include PAYLOAD.host from shared.runtime_host.system_event_host() (spcs:… when SNOWFLAKE_SERVICE_* is set, otherwise host: + OS hostname). See ExplicitIdleShutdownSafetySpec.md §5.4.

In SPCS, set DM_IDLE_SHUTDOWN_MINUTES on both orchestrator and DEA service specs to the same value when overriding.

Data validation source connections

Each worker thread keeps one source connection per engine and USE DATABASE command, and reuses it for that worker's validation queries. After every source read the worker calls the connection's rollback() to end the read transaction, so no transaction stays open between queries.

rollback() is optional in DB-API 2.0 (PEP 249). A driver without it has no transactions, so the worker skips that step and keeps the connection: BigQuery's google.cloud.bigquery.dbapi.Connection is one. If rollback() exists but raises, the worker logs Failed to roll back source connection, closes that connection and opens a new one for the next read.

Log file location

The worker writes a rotating log file (data_exchange_agent.log, 10 MB × 5 backups) alongside console output. By default the log file is created under ~/.data_exchange_agent/logs. Set the DATA_EXCHANGE_AGENT_LOGS_DIR environment variable to write logs to a different directory — useful in containers/SPCS, when the home directory is read-only, or when you want logs on a mounted volume.

In parallel, every worker (and in-process SDV) log record is mirrored into the shared scai daily log at ~/.snowflake/scai/logs/scai{YYYYMMDD}.log, tagged ps=DMVF_WORKER. That file is skipped on SPCS and when DMVF_SCAI_LOG=0. See docs/common/logging.md.

export DATA_EXCHANGE_AGENT_LOGS_DIR=/var/log/dea
data-exchange-agent run -c configuration.toml
Setting Env variable Default
Log directory DATA_EXCHANGE_AGENT_LOGS_DIR ~/.data_exchange_agent/logs

The value is resolved at startup: a leading ~ is expanded, the path is resolved to an absolute location, and the directory is created if it does not exist. In SPCS, set DATA_EXCHANGE_AGENT_LOGS_DIR on the DEA service spec.

Unified container image: runtime user

The unified image (Dockerfile.unified, the image SPCS runs) starts as root only to install the source's driver for DATA_SOURCE_TYPE at startup and register it in /etc/odbcinst.ini. The entrypoint then re-runs itself as the unprivileged appuser (via setpriv, with no capabilities and no_new_privs), and everything after that, including the agent, runs as appuser:

  • The generated configs are written under appuser's home: $HOME/configuration.toml and $HOME/.snowflake/config.toml (mode 0600), that is /home/appuser/.... The image no longer writes to /root or /app/src.
  • If the drop fails because appuser is missing or the runtime withholds CAP_SETUID/CAP_SETGID, the container exits with a FATAL error rather than run the agent and its credentials as root. There is no opt-out: the runtime must permit the switch to appuser.
  • Started as a non-root user from the outset, the entrypoint can't install a driver. It exits with an error for sources that need one (SQL Server, Azure Synapse, Redshift, PostgreSQL, Teradata) unless the driver is already installed. Oracle, BigQuery and DB2 need no system driver and start normally.
  • Anything the agent reads at runtime, such as the Kerberos secret mounts for Windows authentication, must be readable by appuser.

Unified container image: Microsoft ODBC driver without packages.microsoft.com

For sqlserver and azure_synapse, the unified image installs msodbcsql18 (plus mssql-tools18 for SQL Server) from packages.microsoft.com at startup. When the account's external access does not allow that host, give the worker the packages on a stage instead:

  1. Download the Debian 13 .deb files for the worker's architecture (amd64 or arm64) from packages.microsoft.com: msodbcsql18 for both sources, and mssql-tools18 (BCP) as well for SQL Server. A SQL Server worker refuses a stage without mssql-tools18. Staging them accepts Microsoft's license: the worker unpacks them without running the package's license prompt. Stage the files exactly as Microsoft publishes them: the worker installs only a file whose sha256 matches a build in Microsoft's signed repo index, as recorded when the worker image was built. A driver version released after that image is refused until the next worker image release.

  2. PUT them to an internal stage the worker role can READ, keeping the file names (msodbcsql18_<version>_<arch>.deb, mssql-tools18_<version>_<arch>.deb). The worker also accepts the .deb.gz files a default PUT writes, but AUTO_COMPRESS = FALSE keeps them as is:

    CREATE STAGE MY_DB.PUBLIC.ODBC_DRIVERS ENCRYPTION = (TYPE = 'SNOWFLAKE_SSE');
    PUT file:///tmp/drivers/msodbcsql18_*.deb @MY_DB.PUBLIC.ODBC_DRIVERS AUTO_COMPRESS = FALSE;
    PUT file:///tmp/drivers/mssql-tools18_*.deb @MY_DB.PUBLIC.ODBC_DRIVERS AUTO_COMPRESS = FALSE;
    

    SPCS can mount the stage only if its encryption fits the account's cloud. On Azure the stage must use SNOWFLAKE_SSE; on AWS either SNOWFLAKE_SSE or the default SNOWFLAKE_FULL works. Accounts on Google Cloud cannot mount stage volumes, so this fallback is not available there. A stage's encryption cannot be changed after it is created, so on Azure create a new SNOWFLAKE_SSE stage rather than reuse one created with the default.

  3. Pass the stage to setup, which mounts it at /opt/drivers:

    scai data worker setup --compute-pool MY_POOL --source-connection my-sqlserver \
      --driver-stage @MY_DB.PUBLIC.ODBC_DRIVERS
    

At startup the worker still tries packages.microsoft.com first. If that fails, root only copies the staged msodbcsql18_*.deb (and mssql-tools18_*.deb) into a private directory and checks each copy's sha256; a staged file that is not a published Microsoft build is refused there, with an error naming the file and its sha256. After dropping to appuser, the worker unpacks the checked copies under /home/appuser/.local/microsoft-odbc with dpkg-deb -x, with no network access, writes an odbcinst.ini there naming the unpacked driver, and points unixODBC at it (ODBCSYSINI) and PATH at its bcp and sqlcmd. Nothing from the stage is installed or run as root, and the packages' maintainer scripts never run. One of those scripts is msodbcsql18's license prompt (it refuses unless ACCEPT_EULA=Y); with it skipped, staging Microsoft's packages is what accepts their license. Every requested package must be on the stage or already installed. If neither source works, the container exits with ERROR: ODBC Driver 18 for SQL Server is not installed, naming both sources; a .deb for the wrong architecture or Debian release fails the same way. A restarted container skips packages.microsoft.com and unpacks the stage again.

Outside SPCS, set DRIVER_PACKAGES_DIR (default /opt/drivers) to a directory holding the files, for example a Docker bind mount. Re-running scai data worker setup without --driver-stage creates the service without the mount.

ODBC Driver Auto-Detection

SQL Server connections prefer Microsoft's native mssql-python driver, installed via the sqlserver extra (pip install "snowflake-data-exchange-agent[sqlserver]"). It bundles its own ODBC binaries, so no unixODBC driver manager or msodbcsql install is needed. When it is not installed — or when extra_options contains a keyword it does not accept — the agent falls back to pyodbc and automatically detects the best available ODBC driver, preferring the newest (ODBC Driver 18 > 17 > 13 > 11). If a specific driver is requested but not found, it falls back to the best available driver with a warning.

scai installs the sqlserver extra into the worker it manages (scai data worker start --local) for SQL Server projects, so that worker needs no ODBC install either. The exception is macOS 14 and earlier, where mssql-python publishes no wheel: there scai leaves the extra out and the worker needs ODBC Driver 18. ODBC Driver 18 is also needed on every host with use_bcp = true, since the bcp utility loads it, and for the SQL Server CETAS extraction, which connects through pyodbc. data-exchange-agent doctor (run by scai data worker start) reports which driver a SQL Server connection uses in its SQLServer driver row. A worker that falls back from a native driver (mssql-python, redshift_connector, teradatasql) to ODBC logs it at debug level, once per host.

Session identification differs by path. On the ODBC path the reserved identifier SNOWFLAKE-AIM-DMV/<version> is written to program_name via the APP keyword. The native driver reserves APP for its own telemetry, so it is written to the session's CONTEXT_INFO instead:

SELECT session_id, login_name, CAST(context_info AS varchar(128)) AS tool_identifier
FROM sys.dm_exec_sessions
WHERE context_info IS NOT NULL;

Set set_context_info = false on the connection if the deployment already uses CONTEXT_INFO for its own purposes.

To manually specify a driver:

[connections.source.sqlserver]
odbc_driver = "ODBC Driver 17 for SQL Server"

ADBC transport (SQL Server, Redshift)

The regular cursor extract on SQL Server and Redshift can read over an ADBC driver as Arrow record batches instead of the DB-API driver. It is opt-in per connection; the default is transport = "dbapi":

[connections.source.sqlserver]  # or [connections.source.redshift]
transport = "adbc"

It needs the adbc extra (pip install "snowflake-data-exchange-agent[adbc]") and the driver, installed with dbc (dbc install mssql or dbc install redshift). The agent loads the driver by its manifest name. When the extra or the driver is missing, or a connection setting has no ADBC form, the extract falls back to DB-API with a warning. Other dialects reject the key.

Only the regular cursor extract honours transport. On SQL Server, use_bcp = true still wins: BCP extracts the table and logs that it ignored transport = "adbc". On Redshift, UNLOAD, when configured, ignores it the same way. Cloud-direct and the other bulk extractors also ignore it.

Unified image (SPCS). Dockerfile.unified installs the adbc extra, plus the pinned drivers mssql 1.7.0 and redshift 1.8.0, into /etc/adbc/drivers at build time. The drivers' LICENSE and NOTICE files are in /usr/share/licenses/adbc-driver-<name>/. If the registry has no build of a pin for the image's architecture, that image ships without the driver and uses DB-API. Set DATA_SOURCE_TRANSPORT=adbc on the worker to render transport = "adbc" into the SQL Server or Redshift source section. Unset or dbapi leaves the key out, and no other dialect's section gets it. The image's SQL Server templates render use_bcp from DATA_SOURCE_USE_BCP (default true), so on SQL Server the setting takes effect only with DATA_SOURCE_USE_BCP=false, which switches the worker from BCP to the ODBC cursor extract. scai data worker setup sets it from use_bcp in the project's worker TOML. Locally, scai data worker start keeps use_bcp when it fills a by-name source section (connection_name) from the stored connection, so use_bcp = true beside connection_name switches a local worker to BCP, which needs bcp on the PATH.

Encryption (SQL Server)

The encrypt and trust_server_certificate parameters are optional. When set, they apply to both the native and ODBC paths. When omitted, each driver applies its own default:

  • mssql-python (native, preferred): Encryption is mandatory by default.
  • ODBC Driver 18 and above: Encryption is mandatory by default.
  • ODBC Driver 17 and below: Encryption is disabled by default.

An unset encrypt is never inherited across paths. A host with only ODBC 17 installed still gets an encrypted connection on the native path, and the agent logs a warning so the change is visible. If the server cannot terminate TLS, set encrypt = false explicitly; if it presents a self-signed certificate, set trust_server_certificate = true.

[connections.source.sqlserver]
username = "sa"
password = "mypassword"
database = "mydb"
host = "my-server.example.com"
port = 1433
encrypt = true
trust_server_certificate = false

For development environments or SQL Servers without encryption support, either omit the encryption parameters or set encrypt = false.

Encryption (Azure Synapse)

encrypt takes true (the default when unset), false, or "strict"; trust_server_certificate defaults to false. The connection string carries exactly one Encrypt= and one TrustServerCertificate= built from these settings.

encrypt = "strict" sends Encrypt=strict (TDS 8.0): TLS is negotiated before any TDS traffic, which allows TLS 1.3, and the driver always validates the server certificate, so TrustServerCertificate is left out. It needs ODBC Driver 18 or later: the agent refuses it when odbc_driver names Driver 17 or older, or when trust_server_certificate = true. On the SPCS worker, set DATA_SOURCE_ENCRYPT=strict.

[connections.source.azure_synapse]
host = "myworkspace.sql.azuresynapse.net"
database = "MyDedicatedPool"
username = "sql_user"
password = "your_password"
encrypt = "strict"

Minimum TLS version (Azure Synapse)

encrypt = "strict" allows TLS 1.3 but does not require it. To refuse anything older, add min_tls_version = "1.3" (or "1.2"); it needs encrypt = "strict". On the SPCS worker, set DATA_SOURCE_MIN_TLS_VERSION=1.3.

ODBC Driver 18 has no connection-string keyword for the TLS version: on Linux and macOS it uses OpenSSL's system-wide defaults, which OpenSSL reads once when the process starts. So the agent writes a small OpenSSL config (MinProtocol = TLSv1.3) and restarts itself once, in place, with OPENSSL_CONF pointing at it. Expect a log line saying so at startup.

  • The floor covers the whole worker, not only Synapse: the Snowflake connection, PUTs to Snowflake stages and OCSP checks need TLS 1.3 too. Snowflake and its S3 and Azure stages accept TLS 1.3. Clients that set their own minimum (Python ssl, used by the boto3 and Azure SDK uploaders) keep TLS 1.2.
  • The agent refuses min_tls_version when OPENSSL_CONF is already set, rather than drop your OpenSSL settings. Put MinProtocol in your own config instead.
  • Windows is refused: the driver uses Schannel there, whose minimum TLS version is a machine-wide setting (the SCHANNEL\Protocols registry keys).
  • A Synapse pool that cannot do TLS 1.3 fails to connect, which is what the setting is for.
[connections.source.azure_synapse]
host = "myworkspace.sql.azuresynapse.net"
database = "MyDedicatedPool"
username = "sql_user"
password = "your_password"
encrypt = "strict"
min_tls_version = "1.3"

Query modifiers (anti-locking hints)

Optional per-connection query modifiers reduce lock contention on the source during extraction and data-validation reads. Configure under the source connection block:

[connections.source.sqlserver.query_modifiers]
object_modifier = " WITH (NOLOCK)"
# select_modifier = " TOP 100 PERCENT"  # optional; after SELECT
Field Description
object_modifier Suffix appended to table references in generated SQL (e.g. SQL Server WITH (NOLOCK)).
select_modifier Text inserted immediately after SELECT (e.g. Oracle PARALLEL degree). Set to "NONE" to disable Oracle auto-hinting.

Platform behavior:

  • Teradata: LOCKING ROW FOR ACCESS is applied automatically on source reads; no user configuration required.
  • SQL Server / Azure Synapse: opt-in via object_modifier (e.g. WITH (NOLOCK)). Dirty reads are possible — use only when acceptable for your workload.
  • Oracle: when select_modifier is unset, a default PARALLEL hint may be applied on source reads.

Workflow-level queryModifiers in migration or validation JSON merge with connection-level settings (table/workflow overrides win). See the orchestrator Workflow Configuration Reference for JSON shape.

DB2 row-count check

A DB2 extract counts the extraction statement's rows on the source after writing each Parquet file and fails the task if the file holds fewer. ibm_db's rowset fetch skips a row it cannot bind without raising, so without the check such a row would go missing with no error. See DB2 data-type coverage.

Profiled decimal columns (ODBC Parquet)

For a decimal column without catalog precision, such as a PostgreSQL bare numeric, the orchestrator profiles the data and sends the NUMBER(p,s) it creates the target as in the task (extraction_decimal_types). The ODBC Parquet writer uses that type instead of the driver's (psqlODBC reports numeric(28,6)). A value with more decimals than s is rounded half-up, as Snowflake rounds it on the psql COPY path, and the agent logs one warning per column with the count. A value whose integer part does not fit fails the task, naming the column. Decimal columns the orchestrator did not type, including any column a customColumnTransforms encode replaces, keep the driver's type and are never rounded. See the bare NUMERIC profile.

Secrets

Connection passwords and other sensitive fields can reference external secret stores instead of plain text.

Command substitution — embed a shell recipe in a string field:

[connections.source.sqlserver]
password = "$(aws secretsmanager get-secret-value --secret-id my/dea/sql --query SecretString --output text)"

Enable with SECRET_MANAGERS_ALLOW_CMD_SUBSTITUTION=true in the agent's environment.

Azure Key Vault — use the az recipe; --query value -o tsv prints the raw secret value, and #field projects a field from a JSON value with one az call per cache TTL:

[connections.source.sqlserver]
username = "$( az keyvault secret show --vault-name dmvf-prod-kv --name sqlserver-migrator --query value -o tsv )#username"
password = "$( az keyvault secret show --vault-name dmvf-prod-kv --name sqlserver-migrator --query value -o tsv )#password"

The Azure CLI must be on PATH and logged in (az login --identity --allow-no-subscriptions or a service principal with the same flag) as the agent's user, with the Key Vault Secrets User role. Secret names allow only letters, digits and hyphens. SPCS workers have no az; use Snowflake Secrets there. Auth, roles, Orchestrator setup and preflight errors: Azure Key Vault secrets.

REST providers — register HTTP secret backends in a TOML file pointed to by SECRET_MANAGERS_CONFIG_FILE:

[secret_managers.providers.vault]
type = "rest"
base_url = "https://vault.example.com/v1/secret/data/dea"

Do not put [secret_managers] inline in configuration.toml — the worker loader ignores unrecognized top-level sections. Use SECRET_MANAGERS_CONFIG_FILE or the env vars below.

Variable Default Description
SECRET_MANAGERS_CONFIG_FILE Unset Path to TOML with [secret_managers.providers.*] blocks and [secret_managers] allow_cmd_substitution.
SECRET_MANAGERS_ALLOW_CMD_SUBSTITUTION false Allow $(...) recipes in config strings.
SECRET_MANAGERS_CACHE_TTL_SECONDS 300 Cache resolved secrets (seconds).
SECRET_MANAGERS_RESOLVE_TIMEOUT_SECONDS 10 Per-resolve timeout (seconds).
SECRET_MANAGERS_DISABLED_PROVIDERS "" Comma-separated provider schemes to disable.
SNOWFLAKE_CONNECTIONS_RESOLVE_SECRETS false Resolve aws-sm:/// and other secret references in the named Snowflake connection's connections.toml entry ([connections.target.snowflake_connection_name]) before connecting. The file is not changed.

Secrets are resolved at config load time via the shared snowflake-secret-managers library (installed with the agent).

Rate limiting

The orchestrator stores rate-limit rules in Snowflake (DATA_MIGRATION.RATE_LIMIT by default). Each rule caps concurrent executing tasks whose scope matches a SQL LIKE pattern, optionally filtered by workflow ID and affinity.

Every worker task pull goes through PULL_TASKS with capacity 1, so rate limiting is always applied to DEA workers regardless of max_parallel_tasks. Rules are a soft cap — under concurrent polling by multiple worker processes, executing tasks can briefly overshoot the target (roughly up to ~2× with a large worker fleet).

max_parallel_tasks sets the number of in-flight worker threads the agent runs concurrently. It does not change the pull batch size — each thread still fetches one task at a time, so every claim is subject to rate-limit rules.

Setting Effect
max_parallel_tasks = N Runs up to N tasks concurrently in this worker; each task is claimed via its own single-task PULL_TASKS subject to rate-limit rules.
TARGET_CONCURRENT_TASKS = 0 in a rule Pauses matching scopes exactly.

Insert or update rules with SQL against your migration metadata schema (same database/schema as the task queue). The orchestrator README includes example INSERT statements. Orchestrator batch pulls do not enforce rate limits — only worker pulls do.

Query Tagging

The Worker automatically sets Snowflake's QUERY_TAG session parameter on every query it submits. Tags are compact JSON strings containing identifiers such as the workflow ID, task ID, and worker version. You can use these tags to filter and attribute Worker queries in QUERY_HISTORY:

SELECT query_text, query_tag, start_time
FROM SNOWFLAKE.ACCOUNT_USAGE.QUERY_HISTORY
WHERE TRY_PARSE_JSON(query_tag):DMVF_WORKFLOW_ID IS NOT NULL
ORDER BY start_time DESC;
Tag key Present on Description
DMVF_VERSION Infrastructure queries Worker package version.
DMVF_WORKFLOW_ID Task-processing queries Workflow that originated the task.
DMVF_TASK_ID Task-processing queries Individual task identifier.
DMVF_WORKER_VERSION Task-processing queries Worker package version.

Changelog

v1.49.0

New features

  • Added a row checksum gate that validates a large matching table with one aggregate query per side before extracting row signatures.

Improvements

  • Improved the row checksum gate to check both sides of a range in one agent task, running the Snowflake query asynchronously alongside the source query.
  • Improved doctor to show why the Snowflake target connection failed.
  • Improved BigQuery partitioning by collapsing range partitions when the lead column does not prune.
  • Improved validation dashboard searches to resolve tables by their metadata identity.

Bug fixes

  • Fixed scai data worker start dropping use_bcp from by-name SQL Server worker configs.
  • Fixed BCP not working with Windows Authentication in the worker config file.
  • Fixed Snowflake named-connection credentials (account, user, password) not going through the secrets resolver, and added a key-pair passphrase variable.

v1.48.1

New features

  • Added a Hive source connector (impyla by default, ODBC fallback).
  • Added a typed match selector model with column type families.

Improvements

  • Improved the migration extract profile by splitting it into source, conversion, and write steps.
  • Improved doctor source driver probes by looking them up in a table.

Bug fixes

  • Fixed scai_cloud_state install paths exceeding the Windows MAX_PATH limit.

v1.48.0

New features

  • Added support for Azure Key Vault as an external secrets manager.
  • Added optional PARALLEL on worker PUT commands.
  • Added the adoption row-hash check for partially migrated Snowflake targets.

Improvements

  • Optimized the BCP subprocess call.
  • Improved worker logs by removing the bulk_utility unknown-key warning on every start and the mssql-python ODBC fallback message on every connection.

Bug fixes

  • Fixed PostgreSQL bare NUMERIC extracts failing on values wider than the ODBC default (28,6).
  • Fixed Teradata extraction silently truncating LOB values; it now fails instead.
  • Fixed stale files in the worker's internal-stage folder by clearing it before each extract attempt.
  • Fixed Oracle dates and timestamps before year 1 losing their sign.
  • Fixed BigQuery source read cleanup calling an unavailable Connection.rollback and discarding successful connections.
  • Fixed hybrid L3 signature pushdown compare holding every diff row in memory, causing MemoryError on large partitions.
  • Fixed the SPCS worker image installing msodbcsql18 from packages.microsoft.com at start, which failed on PrivateLink-only accounts.
  • Fixed [secret_managers].allow_cmd_substitution in TOML never being applied.
  • Fixed Snowflake org-account identifiers containing underscores being rejected.
  • Fixed Teradata adoption row checks by running HASH_MD5 like L3 and resetting pooled ODBC sessions.

v1.47.0

New features

  • Added BigQuery Iceberg extraction from EXPORT DATA Parquet files, with L1, L2, and L3 validation.
  • Added support for Azure Synapse Iceberg create_fresh on cet_as and cloud_direct.
  • Added Oracle native DATE and TIMESTAMP types, with nanosecond TIMESTAMP(9), for Iceberg v3 native targets.
  • Added encrypt = "strict" (TDS 8.0) and min_tls_version for Azure Synapse connections, also on the SPCS worker.
  • Added DATA_SOURCE_USE_BCP=false on the SPCS worker to extract SQL Server through ODBC instead of BCP.
  • Added resolution of connection secrets from AWS Secrets Manager (aws-sm:///) on EKS.

Improvements

  • Improved Teradata L2 validation to compute the standard deviation of integer columns exactly.
  • Updated the Snowflake connector to snowflake-connector-python 5.x.

Bug fixes

  • Fixed SQL Server and Azure Synapse cet_as extracts failing with 15842 (external table location already exists) when a task was replayed after its completion was lost, by clearing the landing prefix's data files before each attempt.
  • Fixed BCP extraction of very wide SQL Server tables with collation information on many columns.
  • Fixed direct mode retrying a failed SQL Server extract for hours and hiding the real error when unixODBC is missing.
  • Fixed row validation of tables with duplicate keys by matching duplicate-key rows as multisets, and quoted SQL Server identifiers.

v1.46.2

New features

  • Added support for reading from Redshift data shares, including the worker check that it connects to the shared database.

Improvements

  • Improved L2 validation results to carry the reason each column is left out.
  • Improved the worker connection check to suggest mssql-python as a fallback when the SQL Server ODBC stack fails, and to report why a SQL Server connection check failed.

Bug fixes

  • Fixed ORACLE_WALLET_LOCATION having no effect on the worker container.

v1.46.1

Bug fixes

  • Fixed CVE-2026-115557 by rebuilding the container image on Python 3.11.18.

v1.46.0

Improvements

  • Improved cloud_direct on SPCS workers by forwarding region, timeout, and credential settings, and failing early with DMG0074 when region or credentials are missing.
  • Improved Redshift table size estimation to run per table instead of scanning SVV_TABLE_INFO.

Bug fixes

  • Fixed data validation opening a Snowflake session per partition and a source connection per query, which exhausted connection limits.
  • Fixed direct row validation failing tables whose rows are full duplicates when the row drill-down finds no differences.
  • Fixed SQL Server Iceberg L3 validation reporting mismatches between 9-digit source and 6-digit target fractional seconds.

v1.45.4

Improvements

  • Improved Iceberg validation to use the table format version read from the Snowflake catalog.

Bug fixes

  • Fixed ADBC extraction failing on empty results; an empty result now leaves no file, matching DB-API extraction.

v1.45.3

New features

  • Added explicit-credential support for S3 and GCS cloud_direct extraction.
  • Added ADBC as an opt-in cursor extraction mode.

Bug fixes

  • Fixed claimed tasks that cannot be mapped failing the whole batch; only that task now fails.
  • Fixed loads running with the connection's default role instead of the project's configured Snowflake role.
  • Fixed arm64 images shipping without DB2 support.

v1.45.2

Bug fixes

  • Fixed hybrid row validation reporting false mismatches for SQL Server DATETIMEOFFSET columns landed as VARCHAR in Iceberg v3 compatible tables.

v1.45.1

Improvements

  • Improved schema-level metadata retrieval by using SHOW COLUMNS.

Bug fixes

  • Fixed DB2 rowset fetches silently dropping rows that could not be bound.
  • Fixed SQL Server Iceberg schema validation reporting a missing Snowflake character length.
  • Fixed an all-NULL varbinary column extracted over ODBC being written with the wrong Parquet type, which failed the whole table load.

v1.45.0

New features

  • Added support for Kerberos Windows authentication in the unified worker image.
  • Added SPCS self-suspend for the data exchange service when it is safe to stop.

Improvements

  • Improved idle shutdown so periodic tasks are ignored by the worker idle safety check.
  • Improved Redshift connection resiliency with TCP keepalive defaults.

Bug fixes

  • Fixed ODBC connection strings truncating values that contain ;, such as passwords.
  • Fixed Azure cloud_direct on SPCS-deployed workers dropping account_name and credentials.
  • Fixed Redshift and PostgreSQL REAL not being extracted as the exact widened float value.
  • Fixed decimal casts in COPY INTO after a lost CREATE race or for a renamed column.
  • Fixed Oracle column names being upper-cased in validation extracts, which made mixed-case columns collide.
  • Fixed local start readiness reporting for a process that exits right after starting.

v1.44.1

New features

  • Added support for running the local SQL Server worker without installing unixODBC and msodbcsql18 with sudo.

Improvements

  • Improved Redshift connections to retry DNS failures (gaierror) instead of failing the task on the first attempt.
  • Tuned Redshift TCP keepalive on both redshift_connector and the ODBC fallback so long silent executes survive SPCS/NAT idle timeouts.

Bug fixes

  • Fixed PERIOD validation signature extraction.
  • Fixed Redshift TIMETZ and INTERVAL handling for Iceberg targets.

v1.44.0

New features

  • Added Iceberg FULL_INGEST load mode with load-time reserialization.
  • Added column-scoped custom validation metrics model.
  • Added column metric wiring in the data exchange agent.
  • Added Iceberg FULL_INGEST native temporal type migration support.

Improvements

  • Improved trace-id correlation across SCAI and DMVF logs.
  • Improved object-store settings passthrough during SPCS worker setup.
  • Improved Azure cloud_direct to honor a prefix and write a valid config template.

Bug fixes

  • Fixed Oracle XMLTYPE hybrid L3 validation failure with ORA-28817 in DBMS_CRYPTO.HASH.
  • Fixed Oracle metadata templates incorrectly upper-casing quoted table and column names.
  • Fixed data exchange agent exiting with code 0 when startup fails instead of propagating the error.
  • Fixed SQL identifier quoting to use dialect-correct syntax across all platforms.
  • Fixed PUT to TASK_RESULTS failing on Windows due to unescaped backslashes in the local path.

v1.43.1

Bug fixes

  • Fixed Teradata WRITE_NOS extract retry failing with Error 9134 (object already exists) after a session drop by clearing the landing prefix before each attempt.

v1.43.0

New features

  • Added DB2 support to the unified data-exchange image.
  • Enabled Iceberg native storage for v2 tables.

Improvements

  • Reduced Direct Mode start-up and polling latency for single-table migrations.
  • Added measurement of Iceberg v2-compatible columns that retained their original type.
  • Improved error messages for custom column transforms to name the failing expression when extraction or COPY INTO fails.

v1.42.5

New features

  • Added L2 metrics validation for Iceberg v2 compatible columns that preserve their source type.

Bug fixes

  • Fixed task leases not being released on graceful shutdown, causing claimed tasks to stay blocked until lease expiry.

v1.42.4

Bug fixes

  • Fixed S3 upload timeout handling to automatically reset the upload instead of exhausting retries immediately.

v1.42.3

Improvements

  • Increased default metadata operation concurrency for improved throughput.

v1.42.2

No user-facing changes in this release.

v1.42.1

New features

  • Added configurable request_timeout and connect_timeout for S3 uploads to prevent idle-connection drops on slow source reads.

Improvements

  • Updated Redshift Iceberg TIMESTAMP/TIMESTAMPTZ mapping to land as VARCHAR for zero-copy ADD_FILES_COPY compatibility.

v1.42.0

New features

  • Added graceful shutdown for the local data exchange worker.

Improvements

  • Reduced overhead of Python and CLI processes for direct data migration and validation.

Bug fixes

  • Fixed SQL Server row hashing to use the entire row instead of the first 4000 characters.
  • Fixed dotted table names to remain a single identifier through data validation.
  • Fixed Teradata S19 charset handling.
  • Fixed DB2 source connection test to use pyodbc and a bare SELECT 1.

v1.41.0

New features

  • Added Azure Synapse support for SPCS Data Exchange Worker setup.

Improvements

  • Normalized Oracle text comparisons with COLLATE BINARY and ORA-00904 fallback.
  • Removed legacy dual-cursor row-hash compare handler.
  • Improved FLOAT and encoded text display in L3 cell validation results.

Bug fixes

  • Fixed rows with NULL validation key being reported as NOT_FOUND on both sides.

v1.40.1

Improvements

  • Removed unused Flask server dependency.

v1.40.0

Improvements

  • Normalized PostgreSQL and Redshift comparisons.
  • Reduced startup time for DMVF Python code.

Bug fixes

  • Fixed ODBC output converters corrupting binary SQL Server types.
  • Fixed false positive in L3 validation for SQL Server and Oracle tables with VECTOR columns.

v1.39.0

New features

  • Added normalized comparison collation for cross-platform data validation.
  • Added Iceberg v3 compatible profile and ICEBERG_VERSION=3 support.
  • Added Python support for direct data migration and validation mode.

Improvements

  • Improved PostgreSQL staged CSV to preserve NULL vs empty string distinction.
  • Improved SPCS worker configuration to honor PREFER_NATIVE_DRIVER environment variable.
  • Improved L3 row-by-row extraction by sharing through a data exchange agent strategy.
  • Improved L3 signature comparison by applying text codecs on pushdown.

Bug fixes

  • Fixed Redshift hybrid L3 row hash overflow by segmenting VARCHAR concatenation.
  • Fixed Teradata view L1 validation when ColumnsQV is unavailable.
  • Fixed Redshift hybrid L3 CONCAT overflow in signature hash computation.

v1.38.0

New features

  • Added inline L3 pushdown comparison that eliminates temporary tables.
  • Added always-on L3 pushdown comparison via extraction.strategy configuration.

Improvements

  • Improved L1 column inclusion logging to match exclusion format.
  • Locked the scai-to-DEA hydrate TOML contract for configuration stability.

Bug fixes

  • Fixed L1 schema validation to honor column exclusion lists.
  • Fixed Redshift connector to normalize column descriptions so Parquet types are not inferred per batch.

v1.37.0

New features

  • Added cloud-direct L3 signature copy-extract execution for Teradata WRITE_NOS, Oracle DBMS_CLOUD, Synapse CETAS, and BigQuery EXPORT DATA.
  • Added SQL Server CETAS support for L3 signature copy-extract.

v1.36.0

New features

  • Added Oracle BFILE locator migration support.

Improvements

  • Improved Snowflake session setup to activate all secondary roles.
  • Improved Teradata L3 validation to fail early when HASH_MD5 is unavailable.

Bug fixes

  • Fixed Redshift SUPER columns being read as NULL by the validator.

v1.35.2

New features

  • Added L3 signature comparison with Snowflake pushdown.
  • Added as-stored string comparison, with space-only RTRIM for padded CHAR types.
  • Added GCS backend for cloud-direct extraction.
  • Added named JSON file format for staged SELECT in signature comparison.

v1.35.1

New features

  • Added L3 signature unload framework for data validation.
  • Added Redshift UNLOAD-based L3 signature extraction.
  • Added Entra ID service principal authentication for SQL Server sources.
  • Added relative tolerance semantics for L2 metrics comparison.

Bug fixes

  • Fixed DB2 driver installation in CLI-provisioned data exchange agent workers.
  • Fixed SQL Server and Synapse L3 row hash generation to split CONCAT when columns exceed the 254-argument limit.

v1.35.0

New features

  • Added SQL Server BCP and PostgreSQL COPY signature extraction.
  • Added SQL Server CETAS extract and Iceberg cloud_direct packaging.

Improvements

  • Improved Teradata view L1 precision via DBC.ColumnsQV.

Bug fixes

  • Fixed DEA doctor TCP reachability probe to retry before failing.

v1.34.0

New features

  • Added support for arbitrary columnMappings in L3 validation.

Improvements

  • Improved BigQuery checksum expression for incremental synchronization with CHECKSUM strategy.

Bug fixes

  • Fixed file-path escaping for the Data Validation PUT local source.

v1.33.0

New features

  • Added selectModifier support for customizing the SELECT clause in query modifiers.

Improvements

  • Switched to Microsoft's native mssql-python driver for SQL Server connections, with ODBC fallback.
  • Improved Teradata logical text comparison across different character sets.
  • Added prefer_native_driver opt-out to allow ODBC fallback when the native driver is not preferred.
  • Reduced task queue contention when many threads across many workers access the queue concurrently.

Bug fixes

  • Fixed data exchange worker upload crash and guarded against preprocessing hangs.

v1.32.0

Improvements

  • Increased max supported length for CLOB/BLOB migration in Teradata.

Bug fixes

  • Fixed DB2 extraction by switching from delimited text to Parquet and correcting the shared array builder for native DB2 types.

v1.31.0

Bug fixes

  • Fixed race condition related to Snowpipe ingestion of data validation results.

v1.30.0

New features

  • Added Iceberg v2-compatible L1 and L3 profile support.
  • Added Cloud-Direct extraction strategy for writing data files directly to cloud storage without writing to disk first.
  • Added DB2 as a supported platform.
  • Added Iceberg-aware runtime writers for SPCS environments.

Improvements

  • Improved Iceberg Parquet packaging with proper codec selection, typed timestamps, and UTC homogenization.
  • Improved configuration validation by warning on unrecognized configuration.toml keys.
  • Switched to native redshift_connector for improved Redshift connectivity.

Bug fixes

  • Fixed backward compatibility for IPv4 network configurations.

v1.29.0

New features

  • Added rate limiting features for controlling request throughput.

Improvements

  • Improved text codec column matching to be case-insensitive across source and target.

v1.28.2

New features

  • Added Azure AD authentication modes for the SQL Server connector.
  • Added L3 signature extract handler for ODBC and native connectors.

Improvements

  • Improved Redshift, Teradata, and Oracle signature extract charset parity across connectors.

Bug fixes

  • Fixed DATA_SOURCE_PORT being incorrectly required in the SQL Server image configuration.
  • Fixed Redshift normalization issues affecting data exchange accuracy.

v1.28.1

No user-facing changes in this release.

v1.28.0

New features

  • Added L3 signature comparison for Parquet and External Table pushdown.
  • Added L3 control plane with configuration, registry, task types, and gating.
  • Added L3 signature partitioning and unordered MD5 SELECT.
  • Added trusted connection and Azure AD authentication modes for Synapse.
  • Added port forwarding support for BCP.

v1.27.4

New features

  • Added BCP (Bulk Copy Program) to the Docker image for SQL Server data exchange workflows.

v1.27.3

New features

  • Added base VECTOR type support for data exchange.
  • Added runtime teradatasql driver installation in the unified SPCS image.
  • Added support for additional Teradata authentication options.

Bug fixes

  • Fixed Data Validation workflows failing when a custom DV metadata schema is configured.

v1.27.2

No user-facing changes in this release.

v1.27.1

No user-facing changes in this release.

v1.27.0

New features

  • Added support for Oracle's BOOLEAN data type in data exchange.
  • Added INTERVAL data type support for platforms with mixed-precision intervals (Postgres, BigQuery).
  • Added session tagging for SQL Server and Azure Synapse connections.
  • Added session tagging for PostgreSQL and Redshift connections.
  • Added support for custom extraction plugins.
  • Added a watchdog to detect and handle parent process termination.
  • Added support for customizable normalization expressions in row-hashing validation and cell-by-cell comparison.

Improvements

  • Simplified Snowpipe drain logic for improved reliability.
  • Added staged file readability verification before task completion.
  • Renamed product session tag to SNOWFLAKE-AIM-DMV.

Bug fixes

  • Fixed Oracle CLOB/NCLOB/BLOB truncation at 4000 bytes during data exchange.
  • Fixed pre-flight disk check to honor local_results_directory setting.

v1.26.0

New features

  • Added charset-aware normalization to query generators.
  • Added Teradata non-Latin column UTF-8 hex hashing for server-side row validation.
  • Added key inference for Azure Synapse, BigQuery, and SQLite.
  • Added support for the INTERVAL data type.
  • Added support for overriding the Data Exchange Agent logs directory.
  • Added BigQuery native driver and connection checks to the Data Exchange Agent doctor.
  • Added Teradata query band session tagging.
  • Added BigQuery query job labels session tagging.
  • Added --local-results-directory flag to the data exchange worker CLI.
  • Added Oracle DBMS_APPLICATION_INFO session tagging.

Improvements

  • Retired standalone preflight script; wired preflight as a task-graph configuration flag.

v1.25.1

New features

  • Added Oracle thick-mode support for authenticating against accounts with legacy password hashes.
  • Added readiness checks for PULL_TASKS, database, and schema before starting validation.

v1.25.0

New features

  • Added Azure Synapse support to the unified worker Docker entrypoint.
  • Added BigQuery support for cloud Data Validation (L1/L2/L3).

Improvements

  • Improved doctor command performance with connection reuse, ODBC diagnostics, compact panel layout, and flow-scoped grants.

v1.24.2

New features

  • Added wall-clock execution timeout for boundary analysis tasks.
  • Added Teradata LOCKING ... FOR ACCESS modifier stripping before SQL command classification.
  • Added BigQuery Docker entrypoint support with credential handling and config template.

Improvements

  • Improved float canonical rendering to full precision for L2/L3 validation.
  • Improved numeric canonical rendering with scale-aware handling for T-SQL and Snowflake.
  • Added query modifier support for L3 DEA operations.

Bug fixes

  • Fixed Teradata L3 row-hash computation.
  • Fixed DEA config file writing under $HOME so appuser can start on SPCS.

v1.24.1

New features

  • Added wall-clock execution timeout for boundary analysis tasks.
  • Added scale-aware numeric canonical rendering for T-SQL and Snowflake.
  • Added query modifier support for SQL Server and Synapse.
  • Added BigQuery Docker entrypoint support with credential handling and config template.

Improvements

  • Improved float canonical rendering to full precision for L2/L3 validation.

Bug fixes

  • Fixed Teradata LOCKING ... FOR ACCESS modifier stripping before SQL command classification.
  • Fixed Teradata L3 row-hash computation.

v1.24.0

No user-facing changes in this release.

v1.23.1

New features

  • Added query modifiers foundation with resolver, DEA config, and scan registry.

Improvements

  • Introduced dependency container for service lifecycle management.

Bug fixes

  • Fixed BigQuery cloud-extraction type mapping and timestamp correctness.
  • Fixed Oracle NUMBER, BLOB, LONG, LONG RAW, and XMLTYPE types that were landing zero rows during extraction.
  • Removed unnecessary stage refresh after upload for data extraction tasks, resolving concurrent ALTER STAGE REFRESH failures.

v1.23.0

New features

  • Added configurable text comparison mode (logical vs raw) for column-level validation.
  • Added SQLite as a supported source platform for data validation.
  • Added DATA_SOURCE_ENCRYPT and DATA_SOURCE_TRUST_SERVER_CERTIFICATE optional connection lines for SQL Server.

Improvements

  • Implemented Oracle ISO 8601 timestamp normalization for Snowflake migration.
  • Enhanced timestamp normalization for Teradata with fractional-second precision.
  • Decoupled target platform for data validation, enabling non-Snowflake target comparisons.
  • Migrated schema migrations to the Cloud State library with backwards compatibility.

Bug fixes

  • Fixed handling of missing database attribute on connection config to fail gracefully instead of crashing.
  • Fixed row-hash early-stop so all failed rows are reported when early stopping is disabled.
  • Fixed empty-source handling to record an explicit validation failure instead of silently passing.

v1.22.1

Bug fixes

  • Fixed validation result uploads failing on Windows by normalizing local file paths for the Snowflake PUT command.

v1.22.0

Improvements

  • Hardened worker idle shutdown with a pre-exit safety gate.

Bug fixes

  • Added fail-fast when the worker database does not match the task database on Redshift.

v1.21.0

Improvements

  • Made hybrid validation mode the default: row-level comparison runs first; cell-level drilldown applied to any mismatches, replacing explicit row or cell mode selection.
  • Removed deprecated CHUNK_HASHES table and associated COPY INTO and pipe definitions; a schema migration is applied automatically on upgrade.

Bug fixes

  • Fixed partition row size estimation for views to use sampled rows instead of catalog size.
  • Fixed data validation to fail when the Snowflake target table is empty.

v1.20.5

Improvements

  • Made the COPY extraction strategy the default for PostgreSQL.

v1.20.4

New features

  • Added CETAS-based data migration support for Azure Synapse.
  • Added non-hybrid metadata storage mode.
  • Added edge partitions to validation query generation.

Improvements

  • Improved doctor subcommand with friendlier wording, native-driver detection, and target-objects existence checks.
  • Expanded PostgreSQL column metrics templates.
  • Switched Snowpipe REFRESH to use PATTERN-scoped pipes instead of PREFIX.

Bug fixes

  • Fixed NoneType comparison crash in row-hash when index keys are NULL.

v1.20.3

New features

  • Added external secret-managers framework.

Improvements

  • Deprecated oracledb_preferred and set oracledb by default.
  • Refactored Streamlit dashboard to show Data Validation run progress and metadata.

Bug fixes

  • Corrected import paths, ConfigManager API, and label clarity.

v1.20.2

New features

  • Added ODBC data migration support for Azure Synapse serverless SQL pool.

Improvements

  • Improved L3 row validation with a safeguard for mismatched target columns.

Bug fixes

  • Fixed identifier quoting: uppercase identifiers remain unquoted while lowercase or mixed-case identifiers are auto-quoted.

v1.20.1

New features

  • Added Azure Synapse Analytics connection configuration and ODBC output converters for Synapse-specific types.

Bug fixes

  • Fixed intermediate partition threshold calculation to use the next partition's initial index as the exclusive boundary, preventing unmoved rows on partition edges.

v1.20.0

New features

  • Added doctor subcommand for the data exchange agent to support scai data doctor.
  • Added doctor subcommand for the data migration orchestrator to support scai data doctor.
  • Added support for Oracle quoted and mixed-case identifiers in catalog and object-type queries.
  • Added unified Teradata Docker support with teradatasql, tbuild fallback, and a configurable image registry database.

Improvements

  • Improved L3 row validation by skipping per-partition information_schema queries.
  • Updated WRITE_NOS execution to use teradatasql as the primary driver, with ODBC as a fallback.

Bug fixes

  • Fixed TeradataConnectionConfig ODBC driver check when teradatasql is installed.

v1.13.2

Bug fixes

  • Fixed L3 row validation to honor column-selection and column-mapping config so source and target tables with different column counts no longer crash.

v1.13.1

New features

  • Added DBMS_CLOUD extraction so Oracle can unload directly to an external S3 stage without an agent upload step.
  • Added external-stage JSON load and stage file detection for DBMS_CLOUD.

Improvements

  • Improved Oracle wallet handling: honored tns_admin when wallet_directory is unset, and set both config_dir and wallet_location for oracledb ATP connections.

v1.13.0

New features

  • Added Oracle ODBC extraction with staged Parquet metadata and improved ODBC robustness.
  • Replaced standalone Oracle connector with oracledb-backed connection and added an Oracle Docker image.
  • Added Azure Synapse connection support (Phase 1).
  • Added Azure Synapse CLI and agent integration (Phase 5).
  • Added PostgreSQL bulk extract via psql \copy with PG_CSV_FILE_FORMAT support.
  • Added PostgreSQL support to the unified data exchange agent.
  • Added Teradata use_tpt_for_bulk flag and TPT typed Parquet coercion.

Improvements

  • Enhanced task telemetry by integrating MigrationTracker and current-step tracking.
  • Refactored Teradata extraction strategies to unify REGULAR and TPT handling.
  • Made write_nos_location_container optional in WRITE_NOS configuration and removed the external stage URL and storage integration requirement.
  • Improved Oracle fully-qualified-name and view validation handling.
  • Updated VARCHAR limits in validation templates and constants.
  • Improved row-hashing performance.

Bug fixes

  • Fixed custom-template model imports.

v1.12.0

New features

  • Added view validation support to the Cloud Data Validation pipeline.
  • Added Oracle ODBC source support.
  • Added Teradata type mappings and Snowflake target fully-qualified-name helpers.
  • Added Teradata object_type query in the shared dispatcher.
  • Added Teradata to the data-migration-orchestrator workflow.
  • Added Teradata ODBC source support.
  • Added early-stopping support for L3 row-hashing validation.
  • Added support for custom metrics and templates in Cloud Data Validation.
  • Added Oracle Data Validation foundation with L1 schema validation.
  • Added L3 row and cell MD5 validation for Oracle.
  • Added Oracle wiring and factory registration in the SDV core.
  • Added the teradata optional install extra (pip install snowflake-data-exchange-agent[teradata]).
  • Added support for early stopping, hybrid L3, and Snowpipe (breaking change).
  • Added Snowflake schema utilities and type-mapping updates for the orchestrator.
  • Added TPT and WRITE_NOS data sources for Teradata extraction.
  • Added TPT and WRITE_NOS integration in Teradata workflow tasks.
  • Added a metrics skill and PostgreSQL metrics templates.
  • Added PostgreSQL connector with L0 and L1 validation.
  • Added Oracle as a supported Data Validation source across the orchestrator and agent.
  • Added L2 and L3 row and cell validation for PostgreSQL.
  • Added PostgreSQL support to Cloud Data Validation.

Improvements

  • Optimized L3 row-hashing queries.
  • Treated wrapped (200010) PULL_TASKS lock-wait error as transient so the worker retries instead of failing.
  • Extended Teradata ODBC connection configuration.

Bug fixes

  • Made BCP stdout/stderr pump threads daemon=True to prevent worker hangs on shutdown.
  • Prevented out-of-memory errors in cell-by-cell and row-hashing comparisons in workers.
  • Fixed L3 row-hashing producing false positives.
  • Prevented unnecessary shared-cache eviction when the loaded copy already matches the workspace.
  • Fixed row-hashing algorithm errors and now surfaces duplicates and missing rows distinctly (breaking change).

v1.11.1

Improvements

  • Improved column metrics query performance by consolidating per-column CTEs into a single wide-row query.

Bug fixes

  • Fixed aggregate overflow on STDDEV and VARIANCE during data validation by casting SUM/AVG/STDDEV inputs to FLOAT; removed the VARIANCE metric.

v1.11.0

Improvements

  • Cast value columns to Utf8 before unpivot and corrected IS_VALID evaluation.
  • Vertical partitioning for cell validation on wide tables.

Bug fixes

  • Fixed timestamp copy handling for SQL Server BCP loads.
  • Fixed duplicate tasks created when evaluating L1 results under race conditions.
  • Fixed decimal partition coercion and parallelized L3 validation fixes.

v1.10.0

New features

  • Added hybrid row validation mode — two-phase MD5 + cell drilldown.
  • Added DEFAULT normalization templates for various data types.

Improvements

  • Improved result set snapshots validation.
  • Improved Data Validation performance.
  • Included thread name and ID in log output for easier troubleshooting.
  • Improved the task queue to support a higher number of parallel workers.

Bug fixes

  • Fixed SQL compilation memory exhaustion by batching L2 metrics queries for wide tables.
  • Fixed an issue with the incremental sync watermark on Redshift.
  • Fixed usage of the vectorized scanner.

v1.9.2

Improvements

  • Log installed dependency versions and the Python runtime version at startup.

v1.9.1

Improvements

  • Cloud data validation tasks read query results in batches instead of loading full result sets into memory.

Metadata

Release files for snowflake-data-exchange-agent 1.49.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snowflake-data-exchange-agent 1.49.0
File Size Uploaded Provenance Actions
snowflake_data_exchange_agent-1.49.0.tar.gz 809.7 kB Without provenance Details for snowflake_data_exchange_agent-1.49.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for snowflake-data-exchange-agent 1.49.0
File Interpreter ABI Platform Actions
snowflake_data_exchange_agent-1.49.0-py3-none-any.whl Python 3 none any Details for snowflake_data_exchange_agent-1.49.0-py3-none-any.whl

Total release size: 1.8 MB

Release files / snowflake_data_exchange_agent-1.49.0.tar.gz

Download URL snowflake_data_exchange_agent-1.49.0.tar.gz
Size 809.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3917dce4c4a6587eac7c4f5b4953702a733f79f3bac0e7f240208b2c78fd883c
BLAKE2b-256 checksum
How to use checksums
2ca6c80eec0ade83943641083669294fb6b3204f6a5209504fdc5098a4a540ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / snowflake_data_exchange_agent-1.49.0-py3-none-any.whl

Download URL snowflake_data_exchange_agent-1.49.0-py3-none-any.whl
Size 986.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
afbfacb85ef39d4f8b3f0b9a3f6a1c193e83d95a53b36c00d4363129ee08b215
BLAKE2b-256 checksum
How to use checksums
d051f98e98f90073f70adebad24bffe1bd35b08febb48453ae269c1908b45922
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for snowflake-data-exchange-agent 1.49.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.49.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page