Files
dbt_cloud/dbt_project.yml
T
2023-03-28 23:57:11 +08:00

143 lines
4.4 KiB
YAML

# Name your project! Project names should contain only lowercase characters
# and underscores. A good package name should reflect your organization's
# name or the intended use of these models
name: 'cief_dbt_cloud'
version: '1.0.0'
config-version: 2
# This setting configures which "profile" dbt uses for this project.
profile: 'default'
# These configurations specify where dbt should look for different types of files.
# The `source-paths` config, for example, states that models in this project can be
# found in the "models/" directory. You probably won't need to change these!
model-paths: ["models"]
analysis-paths: ["analyses"]
test-paths: ["tests"]
seed-paths: ["seeds"]
macro-paths: ["macros"]
snapshot-paths: ["snapshots"]
target-path: "target" # directory which will store compiled SQL files
clean-targets: # directories to be removed by `dbt clean`
- "target"
- "dbt_packages"
# Configuring models
# Full documentation: https://docs.getdbt.com/docs/configuring-models
# In this example config, we tell dbt to build all models in the example/ directory
# as tables. These settings can be overridden in the individual model files
# using the `{{ config(...) }}` macro.
models:
cief_dbt_cloud:
# Applies to all files under models/example/
exchange:
marts:
reporting:
description: data modeling use in Preset (Superset)
+materialized: view
+schema: exchange__reporting
warehouse:
description: data modeling contain all fct & dim
+materialized: table
+schema: exchange__warehouse
intermediate:
description: data modeling use for pipeline transformation, contain all int
+materialized: view
+schema: exchange__intermediate
staging:
description: light_transformation & will be occur in staging, contain all stg
+materialized: view
+schema: exchange__staging
base:
description: light_transformation such as rename and remove test or wrong input data
+materialized: view
+schema: exchange__base
shipping:
marts:
reporting:
description: data modeling use in Preset (Superset)
+materialized: view
+schema: shipping__reporting
warehouse:
description: data modeling contain all fct & dim
+materialized: view
+schema: shipping__warehouse
intermediate:
description: data modeling use for pipeline transformation, contain all int
+materialized: view
+schema: shipping__intermediate
staging:
description: light_transformation & will be occur in staging, contain all stg
+materialized: view
+schema: shipping__staging
base:
description: light_transformation such as rename and remove test or wrong input data
+materialized: view
+schema: shipping__base
crisp:
marts:
reporting:
description: data modeling use in Preset (Superset)
+materialized: view
+schema: crisp__reporting
warehouse:
description: data modeling contain all fct & dim
+materialized: view
+schema: crisp__warehouse
intermediate:
description: data modeling use for pipeline transformation, contain all int
+materialized: view
+schema: crisp__intermediate
staging:
description: light_transformation & will be occur in staging, contain all stg
+materialized: view
+schema: crisp__staging
base:
description: light_transformation such as rename and remove test or wrong input data
+materialized: view
+schema: crisp__base
seeds:
cief_dbt_cloud:
exchange:
+schema: exchange__seeds
shipping:
+schema: shipping__seeds
crisp:
+schema: crisp__seeds
snapshots:
cief_dbt_cloud:
exchange:
+target_schema: "{% if target.name == 'prod' %}PROD_EXCHANGE__SNAPSHOTS{% else %}{{ target.schema }}_EXCHANGE__SNAPSHOTS{% endif %}"
shipping:
+target_schema: "{% if target.name == 'prod' %}PROD_SHIPPING__SNAPSHOTS{% else %}{{ target.schema }}_SHIPPING__SNAPSHOTS{% endif %}"
crisp:
+target_schema: "{% if target.name == 'prod' %}PROD_CRISP__SNAPSHOTS{% else %}{{ target.schema }}_CRISP__SNAPSHOTS{% endif %}"
tests:
+severity: warn