Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

Getting Started with dbt Projects on Snowflake

Overview

This repository contains an example dbt project for dbt Projects on Snowflake. It uses the fictitious Tasty Bytes food truck brand as sample data and walks through environment setup, data modeling, CI/CD, and scheduling — all running natively inside Snowflake.

This repository is based on these Snowflake tutorials:

What's Included

Setup Scripts (setup/)

  • tasty_bytes_setup.sql — Creates the warehouse, database, schemas, GitHub integration, network rules, and loads the Tasty Bytes source data from S3 into raw tables.
  • ci_cd_setup.sql — Creates a GitHub Actions service user with OIDC authentication and optional network policies for CI/CD pipelines.

dbt Project (tasty_bytes_dbt_demo/)

  • Staging models — Views that clean and rename columns from raw source tables (orders, trucks, menus, locations, franchises, customer loyalty).
  • Mart models — Tables that aggregate business metrics: orders, customer_loyalty_metrics, and sales_metrics_by_location (Python model).
  • Custom macros — Schema name generation for multi-environment deployments (dev/prod).
  • Generic tests — Reusable test for validating positive amounts.

CI/CD (.github/workflows/)

  • incoming_pr.yml — Runs dbt checks against a dev environment when a PR is opened.
  • pr_merged.yml — Deploys the dbt project to production when a PR is merged.

Scheduling (schedules.sql)

Task definitions for running the dbt project on a schedule using Snowflake Tasks.

Quick Start

  1. Fork this repository.
  2. Run tasty_bytes_setup.sql in a Snowflake worksheet to create the environment and load source data.
  3. Create a workspace in Snowsight connected to your fork.
  4. Run dbt deps, then dbt run from the workspace.

关于 About

Provides a getting started dbt project for dbt on Snowflake

语言 Languages

Python100.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
25
Total Commits
峰值: 15次/周
Less
More

核心贡献者 Contributors