Data exchange agent for migrations and validation
Project description
Snowflake Data Exchange Agent
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).
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 and port
data-exchange-agent run --max-parallel-tasks 8 --port 8080
# Task-handling only, without the HTTP server (for multi-worker setups)
data-exchange-agent run --no-server
# 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 --port 5001
# Test all configured connections (executes SELECT 1)
data-exchange-agent test -c <configuration-file-path>
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. |
--host |
0.0.0.0 |
Host to bind the HTTP server to. | |
--port |
-p |
5001 |
Port to bind the HTTP server to. |
--no-server |
off | Run task handling only, without starting the HTTP server. | |
--local-results-directory |
from config | Base directory for exported files before upload. | |
--debug |
-d |
off | Enable debug mode. |
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] |
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 if you override it there. |
[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 if overridden. |
[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] |
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. These settings are independent of Snowflake connection session defaults (SNOWFLAKE_DATABASE, SNOWFLAKE_SCHEMA in the connection profile).
Example: SQL Server (Standard Authentication)
[connections.source.sqlserver]
username = "username"
password = "password"
database = "database_name"
host = "127.0.0.1"
port = 1433
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)
[connections.source.redshift]
username = "myuser"
password = "mypassword"
database = "mydatabase"
host = "my-cluster.abcdef123456.us-west-2.redshift.amazonaws.com"
port = 5439
auth_method = "standard"
Example: Azure Synapse Analytics
Requires ODBC Driver 18 for SQL Server on the worker host. Use pool_type = "serverless" and database = "master" when the orchestrator runs with --source-platform azure_synapse_serverless; the DEA still uses [connections.source.azure_synapse].
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
# trustServerCertificate = 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.
[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:
teradatasql(preferred) -- Pure Python driver. No OS-level ODBC installation required. Install withpip install teradatasql.- ODBC fallback -- If
teradatasqlis not installed, the agent falls back topyodbcwith the Teradata ODBC driver. Setodbc_driverto the exact name returned bypyodbc.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 ODBC AuthMech when using pyodbc (e.g. TD2, LDAP, KRB5)
#
# L3 data validation: install HASH_MD5 UDF in the same database as `database` above.
# 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.
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 docs/oracle-dbms-cloud-local-setup.md. 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.
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. With the HTTP server enabled (default), it stops when idle shutdown runs; use --no-server for worker-only smoke. 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.
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.
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.
ODBC Driver Auto-Detection
The agent automatically detects the best available ODBC driver for SQL Server connections. If no odbc_driver is specified in the configuration, it will prefer the newest available driver (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.
To manually specify a driver:
[connections.source.sqlserver]
odbc_driver = "ODBC Driver 17 for SQL Server"
ODBC Encryption (SQL Server)
The encrypt and trust_server_certificate parameters are optional. By default, they are omitted from the connection string, allowing the ODBC driver to use its default behavior:
- ODBC Driver 17 and below: Encryption is disabled by default.
- ODBC Driver 18 and above: Encryption is mandatory by default.
[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.
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.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
INTERVALdata 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-directoryflag to the data exchange worker CLI. - Added Oracle
DBMS_APPLICATION_INFOsession 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
doctorcommand 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 ACCESSmodifier 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
$HOMEsoappusercan 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 ACCESSmodifier 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, andXMLTYPEtypes that were landing zero rows during extraction. - Removed unnecessary stage refresh after upload for data extraction tasks, resolving concurrent
ALTER STAGE REFRESHfailures.
v1.23.0
New features
- Added configurable text comparison mode (
logicalvsraw) for column-level validation. - Added SQLite as a supported source platform for data validation.
- Added
DATA_SOURCE_ENCRYPTandDATA_SOURCE_TRUST_SERVER_CERTIFICATEoptional 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
databaseattribute 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
PUTcommand.
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_HASHEStable and associatedCOPY INTOand 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
COPYextraction 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
doctorsubcommand with friendlier wording, native-driver detection, and target-objects existence checks. - Expanded PostgreSQL column metrics templates.
- Switched Snowpipe
REFRESHto usePATTERN-scoped pipes instead ofPREFIX.
Bug fixes
- Fixed
NoneTypecomparison crash in row-hash when index keys areNULL.
v1.20.3
New features
- Added external secret-managers framework.
Improvements
- Deprecated
oracledb_preferredand setoracledbby default. - Refactored Streamlit dashboard to show Data Validation run progress and metadata.
Bug fixes
- Corrected import paths,
ConfigManagerAPI, 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
doctorsubcommand for the data exchange agent to supportscai data doctor. - Added
doctorsubcommand for the data migration orchestrator to supportscai data doctor. - Added support for Oracle quoted and mixed-case identifiers in catalog and object-type queries.
- Added unified Teradata Docker support with
teradatasql,tbuildfallback, and a configurable image registry database.
Improvements
- Improved L3 row validation by skipping per-partition
information_schemaqueries. - Updated
WRITE_NOSexecution to useteradatasqlas the primary driver, with ODBC as a fallback.
Bug fixes
- Fixed
TeradataConnectionConfigODBC driver check whenteradatasqlis 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_adminwhenwallet_directoryis unset, and set bothconfig_dirandwallet_locationfororacledbATP 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 \copywithPG_CSV_FILE_FORMATsupport. - Added PostgreSQL support to the unified data exchange agent.
- Added Teradata
use_tpt_for_bulkflag and TPT typed Parquet coercion.
Improvements
- Enhanced task telemetry by integrating
MigrationTrackerand current-step tracking. - Refactored Teradata extraction strategies to unify
REGULARandTPThandling. - Made
write_nos_location_containeroptional inWRITE_NOSconfiguration and removed the external stage URL and storage integration requirement. - Improved Oracle fully-qualified-name and view validation handling.
- Updated
VARCHARlimits 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_typequery 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
teradataoptional 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_NOSdata sources for Teradata extraction. - Added TPT and
WRITE_NOSintegration 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_TASKSlock-wait error as transient so the worker retries instead of failing. - Extended Teradata ODBC connection configuration.
Bug fixes
- Made BCP
stdout/stderrpump threadsdaemon=Trueto 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
STDDEVandVARIANCEduring data validation by castingSUM/AVG/STDDEVinputs toFLOAT; removed theVARIANCEmetric.
v1.11.0
Improvements
- Cast value columns to
Utf8before unpivot and correctedIS_VALIDevaluation. - 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
DEFAULTnormalization 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
SQLcompilation 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snowflake_data_exchange_agent-1.26.0.tar.gz.
File metadata
- Download URL: snowflake_data_exchange_agent-1.26.0.tar.gz
- Upload date:
- Size: 361.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68fcebc6b2a9aae5307bf5b4595bc7ba63adbb09162fc5a2d876b99284282b7c
|
|
| MD5 |
2a92b8eb9096c559efcb3058fafed85d
|
|
| BLAKE2b-256 |
7003df55816420c668cf0e54a6fbe408d2379442c88195ecbe6570a7634a1ae3
|
File details
Details for the file snowflake_data_exchange_agent-1.26.0-py3-none-any.whl.
File metadata
- Download URL: snowflake_data_exchange_agent-1.26.0-py3-none-any.whl
- Upload date:
- Size: 552.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b39daf3cc47e28033be1a650d1a0c3b5150786efdcf3053dd628ff03d07fe08
|
|
| MD5 |
e1b07c6285b626504185001d06ff815a
|
|
| BLAKE2b-256 |
cd74fcdfda803bf6203f14b09afa1db9600bfe68d4dcfc2db884897923c5fdb9
|