Skip to main content

OpenDataDiscovery Action for dbt

Project description

OpenDataDiscovery dbt tests metadata collecting

PyPI version

CLI tool helps automatically parse and ingest DBT test results to OpenDataDiscovery Platform. It can be used as separated CLI tool or within ODD CLI package which provides some useful additional features.

Installation

pip install odd-dbt

Command options

╭─ Options ─────────────────────────────────────────────────────────────╮
│    --project-dir                 PATH  [default: Path().cwd()odd-dbt] │
│    --target                      TEXT  [default:None]                 │
│    --profile-name                TEXT  [default:None]                 │
│ *  --host    -h                  TEXT  [env var: ODD_PLATFORM_HOST]   │
│ *  --token   -t                  TEXT  [env var: ODD_PLATFORM_TOKEN]  │
│    --dbt-host                    TEXT  [default: localhost]           │
│    --help                              Show this message and exit.    │
╰───────────────────────────────────────────────────────────────────────╯

Command run example

How to create collector token?

odd_dbt_test --host http://localhost:8080 --token <COLLECTOR_TOKEN>

Supported data sources

Source
Snowflake ^1.4.1
Postgres ^1.4.5

Requirements

Library to inject Quality Tests entities requires presence of corresponding with them datasets entities in the platform. For example: if you want to inject data quality test of Snowflake table, you need to have entity of that table present in the platform.

Supported tests

Library supports for basics tests provided by dbt.

  • unique: values in the column should be unique
  • not_null: values in the column should not contain null values
  • accepted_values: column should only contain values from list specified in the test config
  • relationships: each value in the select column of the model exists as a specified field in the reference table (also known as referential integrity)

ODDRN generation for datasets

host_settings of ODDRN generators required for source datasets are loaded from .dbt/profiles.yml.

Profiles inside the file looks different for each type of data source.

Snowflake host_settings value is created from field account. Field value should be <account_identifier> For example the URL for an account uses the following format: <account_identifier>.snowflakecomputing.com Example Snowflake account identifier hj1234.eu-central-1.

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

odd_dbt-0.1.28.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

odd_dbt-0.1.28-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file odd_dbt-0.1.28.tar.gz.

File metadata

  • Download URL: odd_dbt-0.1.28.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.9.1 Linux/5.15.0-1041-azure

File hashes

Hashes for odd_dbt-0.1.28.tar.gz
Algorithm Hash digest
SHA256 66545b56b2d5ba2d9b89c8fa45ac4fe788239c7dd24582f33060331f7b7cc211
MD5 a63ae0905246c4104f3054dd1dcc41c2
BLAKE2b-256 af540258847b662b97bc211f8fcaa503924509d501c69bb5e2bca8abf87be1b8

See more details on using hashes here.

File details

Details for the file odd_dbt-0.1.28-py3-none-any.whl.

File metadata

  • Download URL: odd_dbt-0.1.28-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.9.1 Linux/5.15.0-1041-azure

File hashes

Hashes for odd_dbt-0.1.28-py3-none-any.whl
Algorithm Hash digest
SHA256 e7c37c1da2fce5d1423071bb0952340902472713d00fcb6d526f26e80f1a61a2
MD5 d3ea84dd8a93212094b8d1b39ba8e511
BLAKE2b-256 4a85363584b4450eaac31d6f8cd87f4901940789af063f3d6c7566147684c4af

See more details on using hashes here.

Supported by

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