mirror of
https://github.com/dbt-labs/dbt-project-evaluator.git
synced 2025-12-18 02:11:27 +00:00
logic to remove unwanted models
This commit is contained in:
@@ -61,6 +61,7 @@ vars:
|
||||
|
||||
# -- DAG variables --
|
||||
models_fanout_threshold: 3
|
||||
include_package_models: true
|
||||
|
||||
# -- Naming conventions variables --
|
||||
# to add a new "model type", update the variable model_types
|
||||
|
||||
@@ -41,7 +41,14 @@ unioned_with_calc as (
|
||||
{{ get_dbtreplace_directory_pattern() }} as directory_path,
|
||||
regexp_replace(file_path,'.*{{ get_regexp_directory_pattern() }}','') as file_name
|
||||
from unioned
|
||||
where coalesce(is_enabled, True) = True and package_name != 'dbt_project_evaluator'
|
||||
where
|
||||
coalesce(is_enabled, True) = True
|
||||
|
||||
{% if not var('include_package_models') %}
|
||||
and package_name = '{{ project_name }}'
|
||||
{% else %}
|
||||
and package_name != 'dbt_project_evaluator'
|
||||
{% endif %}
|
||||
),
|
||||
|
||||
joined as (
|
||||
|
||||
Reference in New Issue
Block a user