Files
dbt_cloud/dbt_project.yml
T
2023-05-09 09:53:28 +00:00

109 lines
2.8 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:
staging:
+tags:
- staging
autocount:
+materialized: view
+schema: autocount__staging
crisp:
+materialized: view
+schema: crisp__staging
exchange:
+materialized: view
+schema: exchange__staging
base:
+materialized: view
+schema: exchange__base
shipping:
staging:
+materialized: view
+schema: shipping__staging
base:
+materialized: view
+schema: shipping__base
intermediate:
+materialized: ephemeral
+schema: intermediate
+tags:
- intermediate
marts:
+tags:
- marts
warehouse:
+materialized: table
+schema: warehouse
+tags:
- warehouse
reporting:
+materialized: table
+schema: reporting
+tags:
- reporting
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