dbt Models
This project uses dbt for data transformation. The dbt documentation, including model definitions and lineage, is available at the following link:
dbt Development
Open dbt project as root directory for SQLFluff and other utilities
Local profile: Copy BigQuery service account key to
~/.dbt/profiles.ymlModel development: Use
pipenv run dbt run --select model_namefor iterative developmentDocumentation: Generate with
pipenv run dbt docs generateandpipenv run dbt docs serve
dbt Transform Workflow
The dbt transformation pipeline is defined in .github/workflows/dbt-transform.yml:
Daily execution: Runs at 4 AM UTC, after the data ingestion pipelines.
Triggers: Automatically triggered after successful pipeline runs.
Actions:
Runs dbt models.
Runs dbt tests.
Generates dbt documentation.
Commands: Uses
make installandpipenvfor dbt operations.