amit31 / soda-contract-poc

PoC for Soda Contracts against Vertica DB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data Contract POC with Soda Core

This project serves as a Proof of Concept (POC) for implementing a data contract using Soda Core. It demonstrates the orchestration and automation of tasks related to data contracts, including connecting to a Vertica database, generating a data contract, and performing checks using Soda SQL.

Why Vertica? because Vertica creates initial data when starting the container, which makes it easier to test the POC.

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/soda-contract-poc.git
    cd soda-contract-poc
  2. Install dependencies:

    pip install -r requirements.txt
  3. Manually start the Vertica container:

    docker-compose -f ./docker/docker-compose.yml up -d

    If you are using Mac M1 Processor then use the following command to install Vertica container:

    export DOCKER_DEFAULT_PLATFORM=linux/arm64
    export DOCKER_BUILDKIT=0
    docker-compose -f ./docker/docker-compose.yml up -d

Usage

Run the following command to generate a data contract and perform checks:

python scripts/main_script.py

About

PoC for Soda Contracts against Vertica DB


Languages

Language:Python 100.0%