Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

dbt-yaml-check checks that columns defined in YAML also exist in SQL.

License

Notifications You must be signed in to change notification settings

aranke-archive/dbt-yaml-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dbt-yaml-check

PyPI test

dbt-yaml-check checks that columns defined in YAML also exist in SQL.

This is particularly useful for identifying extraneous columns and typos in column names.

Installation

dbt-yaml-check requires Python version 3.7 or higher.

pip install dbt-yaml-check

Usage

$ cd jaffle_shop
$ dbt run
$ dbt docs generate
$ dbt-yaml-check
+-----------+--------------------+-----+------+
|   Model   |       Column       | SQL | YAML |
+-----------+--------------------+-----+------+
| customers | total_order_amount |||
+-----------+--------------------+-----+------+

FAQ

How can I specify a custom target directory?

Use the target-dir option like so: dbt-yaml-check --target-dir <path_to_your_target>.

About

dbt-yaml-check checks that columns defined in YAML also exist in SQL.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages