Files
dbt_cloud/models/exchange/source/src_migrations__exchange.yml
T
2023-03-28 23:57:11 +08:00

24 lines
712 B
YAML

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: migrations
description: Raw `migrations` table from Snowflake
columns:
- name: id
description: Primary key for 'migrations'
tests:
- unique
- not_null
loaded_at_field: _source_loaded_at
freshness:
warn_after: {count: 2, period: hour}
error_after: {count: 24, period: hour}