mirror of
https://github.com/dbt-labs/dbt-project-evaluator.git
synced 2025-12-18 02:11:27 +00:00
Merge branch 'main' into move_freshness_under_config
This commit is contained in:
@@ -39,7 +39,7 @@ vars:
|
||||
|
||||
```yaml title="dbt_project.yml"
|
||||
vars:
|
||||
exclude_paths_from_project: ["/models/legacy/"]
|
||||
exclude_paths_from_project: ["models/legacy/"]
|
||||
```
|
||||
|
||||
### Example to exclude both a package and models/sources in 2 different paths
|
||||
@@ -47,7 +47,7 @@ vars:
|
||||
```yaml title="dbt_project.yml"
|
||||
vars:
|
||||
exclude_packages: ["upstream_package"]
|
||||
exclude_paths_from_project: ["/models/legacy/", "/my_date_spine.sql"]
|
||||
exclude_paths_from_project: ["models/legacy/", "/my_date_spine.sql"]
|
||||
```
|
||||
|
||||
## Tips and tricks
|
||||
|
||||
@@ -5,6 +5,7 @@ models:
|
||||
enforced: true
|
||||
columns:
|
||||
- name: id
|
||||
description: A multiline description containing example values that might\nbe held in this column. These examples include one with a format like something\Something\Another\Thing
|
||||
data_type: "{{ 'UInt8' if target.type in ['clickhouse'] else 'int' }}"
|
||||
constraints:
|
||||
- type: not_null
|
||||
|
||||
@@ -13,7 +13,7 @@ sources:
|
||||
description: this is table 1.
|
||||
columns:
|
||||
- name: my_column
|
||||
description: description for my source column
|
||||
description: description for my source column with weird chars like \Something\Another\Thing
|
||||
- name: table_2
|
||||
- name: table_4
|
||||
- name: table_5
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
[
|
||||
wrap_string_with_quotes(node.unique_id),
|
||||
wrap_string_with_quotes(dbt.escape_single_quotes(column.name)),
|
||||
wrap_string_with_quotes(dbt.escape_single_quotes(column.description)),
|
||||
wrap_string_with_quotes(dbt.escape_single_quotes(column.description) | replace("\\","\\\\") ),
|
||||
wrap_string_with_quotes(dbt.escape_single_quotes(column.data_type)),
|
||||
wrap_string_with_quotes(dbt.escape_single_quotes(tojson(column.constraints))),
|
||||
column.constraints | selectattr('type', 'equalto', 'not_null') | list | length > 0,
|
||||
|
||||
Reference in New Issue
Block a user