Skip to main content

Snowflake Data Validation

Project description

Snowflake Data Validation

License Apache-2.0 Python

Snowflake Data Validation is a command-line tool and Python library for validating data migrations and ensuring data quality between source and target databases, with a focus on Snowflake and SQL Server.


This package is in Private Preview.

๐Ÿš€ Features

  • Multi-level validation: schema, statistical metrics, and data integrity.
  • Database connectors: support for SQL Server and Snowflake.
  • User-friendly CLI: commands for automation and orchestration.
  • Flexible configuration: YAML-based validation workflows.
  • Detailed reporting: comprehensive reports and progress tracking.
  • Extensible: architecture ready for more database engines.

๐Ÿ“ฆ Installation

pip install snowflake-data-validation

For SQL Server support:

pip install "snowflake-data-validation[sqlserver]"

For development and testing:

pip install "snowflake-data-validation[all]"

โšก Quick Start

Run a validation from SQL Server to Snowflake:

snowflake-data-validation sqlserver run-validation --data-validation-config-file ./config/conf.yaml

Or using the short alias:

sdv sqlserver run-validation --data-validation-config-file ./config/conf.yaml

๐Ÿ› ๏ธ Configuration

Create a YAML file to define your validation workflow:

source_platform: SqlServer
target_platform: Snowflake
output_directory_path: /path/to/output
parallelization: false

source_connection:
  mode: credentials
  host: "server"
  port: 1433
  username: "user"
  password: "password"
  database: "db"

target_connection:
  mode: name
  name: "SnowflakeConnection"

validation_configuration:
  schema_validation: true
  metrics_validation: true
  row_validation: false

comparison_configuration:
  tolerance: 0.01

tables:
  - fully_qualified_name: database.schema.table1
    use_column_selection_as_exclude_list: false
    column_selection_list:
      - column1
      - column2

See the documentation for more advanced configuration examples.


๐Ÿ—๏ธ Architecture

  • CLI: main_cli.py, sqlserver_cli.py, snowflake_cli.py
  • Connectors: connector/
  • Extractors: extractor/
  • Validation: validation/
  • Configuration: configuration/
  • Orchestrator: comparison_orchestrator.py

Project structure:

snowflake-data-validation/
โ”œโ”€โ”€ src/snowflake/snowflake_data_validation/
โ”‚   โ”œโ”€โ”€ main_cli.py
โ”‚   โ”œโ”€โ”€ sqlserver/
โ”‚   โ”œโ”€โ”€ snowflake/
โ”‚   โ”œโ”€โ”€ connector/
โ”‚   โ”œโ”€โ”€ extractor/
โ”‚   โ”œโ”€โ”€ validation/
โ”‚   โ”œโ”€โ”€ configuration/
โ”‚   โ”œโ”€โ”€ utils/
โ”‚   โ””โ”€โ”€ comparison_orchestrator.py
โ”œโ”€โ”€ docs/
โ”œโ”€โ”€ tests/
โ””โ”€โ”€ config_files/

๐Ÿ“Š Reports

  • Schema validation results
  • Statistical comparison metrics
  • Detailed error logs and recommendations

๐Ÿค Contributing

We welcome contributions! See our Contributing Guide for details on how to collaborate, set up your development environment, and submit PRs.


๐Ÿ“„ License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.


๐Ÿ†˜ Support


Developed with โ„๏ธ by Snowflake

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snowflake_data_validation-0.0.21.tar.gz (236.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snowflake_data_validation-0.0.21-py3-none-any.whl (272.1 kB view details)

Uploaded Python 3

File details

Details for the file snowflake_data_validation-0.0.21.tar.gz.

File metadata

File hashes

Hashes for snowflake_data_validation-0.0.21.tar.gz
Algorithm Hash digest
SHA256 30c0f2212253215c11359502f02ffbb7d81b0c6601d242d04ef47884876f9cc6
MD5 bdc1092f35014b4698325efb5badb657
BLAKE2b-256 11ccec80632daf0746e606a8fa7ada0cd2c258662806af6f0f28e95e679b2179

See more details on using hashes here.

File details

Details for the file snowflake_data_validation-0.0.21-py3-none-any.whl.

File metadata

File hashes

Hashes for snowflake_data_validation-0.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 393ec22312fa1daa6d1b5e4cbdbdbc114004645d17d76933b41ed9075f61da44
MD5 5d79fd7634c88398795fdf0e63fbbd28
BLAKE2b-256 69cdb35f7c3b8e7b084812e13a713cadd9d7633c46f1b1720710acda5b8cccbf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page