Skip to content

Commit 88c0184

Browse files
Merge branch 'main' into dc/fix-governance-exclusion
2 parents 45546e1 + 075e57c commit 88c0184

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

dbt_project.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,14 @@ vars:
6767
# -- Naming conventions variables --
6868
# to add a new "model type", update the variable model_types
6969
# and create new variables with the names <model_type>_folder_name and/or <model_type>_prefixes
70-
model_types: ['staging', 'intermediate', 'marts', 'other']
70+
model_types: ['base', 'staging', 'intermediate', 'marts', 'other']
7171

72+
base_folder_name: 'base'
7273
staging_folder_name: 'staging'
7374
intermediate_folder_name: 'intermediate'
7475
marts_folder_name: 'marts'
7576

77+
base_prefixes: ['base_']
7678
staging_prefixes: ['stg_']
7779
intermediate_prefixes: ['int_']
7880
marts_prefixes: ['fct_', 'dim_']

integration_tests/dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ vars:
6161
# ensure integration tests run successfully when there are 0 of a given model type (extra)
6262
exclude_packages: ['exclude_package']
6363
exclude_paths_from_project: ["/to_exclude/","source_3.table_6"]
64-
model_types: ['staging', 'intermediate', 'marts', 'other', 'extra', 'new_model_type']
64+
model_types: ['base','staging', 'intermediate', 'marts', 'other', 'extra', 'new_model_type']
6565
# dummy variable used for testing fct_hard_coded_references
6666
my_table_reference: 'grace_table'
6767
new_model_type_folder_name: 'my_new_models'

integration_tests/models/dbt_project_evaluator_schema_tests/core.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ models:
2121
description: this contains the on_schema_change setting for incremental models. This column was sometimes an empty string, so should be tested to detect regressions
2222
tests:
2323
- is_not_empty_string
24+
- name: model_type
25+
tests:
26+
- dbt_utils.expression_is_true:
27+
expression: "= 'base'"
28+
config:
29+
where: "resource_name = 'base_model_10'"
2430

2531
- name: int_direct_relationships
2632
description: "This table shows one record for each direct parent/child pair in the graph."
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+
select true

0 commit comments

Comments
 (0)