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.4.tar.gz (126.6 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.4-py3-none-any.whl (155.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for snowflake_data_validation-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b75b4b94dfcc1de730a06467dce1751d868abcf2f975b8a36ccbbc2aea2bccc6
MD5 2b8adaedcf484a229fde3666cf8649de
BLAKE2b-256 4e761ec74427f93f25886745c3e71c9127c96c4edcd4953f63a57077f893523d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_data_validation-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bc2b36175f958374d7a6ef3549ae50116f15517b0613247c0fa2107d1d1917f9
MD5 034551072d00ff45bc1e7ff8e5f18994
BLAKE2b-256 2fbc07edf1076cc8c79dffde1118cc4a1945841216b137d0b69e555da6d80ef1

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