forked from ScalefreeCOM/datavault4dbt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbt_project.yml
76 lines (63 loc) · 2.74 KB
/
dbt_project.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: datavault4dbt
version: 1.0.0
require-dbt-version: [">=1.0.0", "<2.0.0"]
config-version: 2
# This setting configures which "profile" dbt uses for this project.
profile: 'datavault4dbt'
# These configurations specify where dbt should look for different types of files.
# The `model-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"
vars:
#Column Aliases
datavault4dbt.ldts_alias: 'ldts'
datavault4dbt.rsrc_alias: 'rsrc'
datavault4dbt.ledts_alias: 'ledts'
datavault4dbt.snapshot_trigger_column: 'is_active'
datavault4dbt.sdts_alias: 'sdts'
datavault4dbt.stg_alias: 'stg'
datavault4dbt.is_current_col_alias: 'IS_CURRENT'
#Hash Configuration
datavault4dbt.hash: 'MD5'
datavault4dbt.hash_datatype: 'STRING'
datavault4dbt.hashkey_input_case_sensitive: FALSE
datavault4dbt.hashdiff_input_case_sensitive: TRUE
#Stage Configuration
datavault4dbt.copy_rsrc_ldts_input_columns: false
#Ghost Record Configuration
datavault4dbt.beginning_of_all_times: {"bigquery":"0001-01-01T00-00-01","snowflake":"0001-01-01T00:00:01", "exasol": "0001-01-01 00:00:01"}
datavault4dbt.end_of_all_times: {"bigquery":"8888-12-31T23-59-59","snowflake":"8888-12-31T23:59:59", "exasol": "8888-12-31 23:59:59"}
datavault4dbt.timestamp_format: {"bigquery":"%Y-%m-%dT%H-%M-%S","snowflake":"YYYY-MM-DDTHH24:MI:SS", "exasol": "YYYY-mm-dd HH:MI:SS"}
datavault4dbt.default_unknown_rsrc: 'SYSTEM'
datavault4dbt.default_error_rsrc: 'ERROR'
datavault4dbt.rsrc_default_dtype: 'STRING'
datavault4dbt.stg_default_dtype: 'STRING'
datavault4dbt.derived_columns_default_dtype: STRING
#Datatype specific default values
datavault4dbt.error_value__STRING: '(error)'
datavault4dbt.error_value_alt__STRING: 'e'
datavault4dbt.unknown_value__STRING: '(unknown)'
datavault4dbt.unknown_value_alt__STRING: 'u'
# 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:
datavault4dbt:
# Config indicated by + and applies to all files under models/example/
dbt_stg:
+schema: <name of your Staging schema>
+materialized: view
raw_vault:
+schema: <name of your RDV schema>
+materialized: table