Merge branch 'main' into move_freshness_under_config

This commit is contained in:
Benoit Perigaud
2025-06-10 19:05:45 +02:00
committed by GitHub
4 changed files with 5 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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,