init from dbt cloud hosting repo

This commit is contained in:
Yam ZhengLim
2023-03-28 23:57:11 +08:00
parent 06a10a7ac7
commit b8d9903e7f
253 changed files with 12008 additions and 0 deletions
@@ -0,0 +1,24 @@
version: 2
sources:
- name: src_exchange_mysql
description: Source data from snowflake 'DEV_CIEF_RAW_DB'
database: |
{%- if target.name == "prod" -%} PROD_CIEF_RAW_DB
{%- else -%} DEV_CIEF_RAW_DB
{%- endif -%}
schema: EXCHANGE_MYSQL
tables:
- name: files
description: Raw `files` table from Snowflake
columns:
- name: id
description: Primary key for 'files'
tests:
- unique
- not_null
loaded_at_field: _source_loaded_at
freshness:
warn_after: {count: 2, period: hour}
error_after: {count: 24, period: hour}