The problem I’m having
I have 2 yml, 1 where y have the incremental configuration for my models and other where i want to add the descriptions and docs, but it seems i cant.
The context of why I’m trying to do this
In my model i have a lot of columns i want to have some sort of description and possible add blocks in the future, and i want to separte that from the incremental configuration im trying, but i allways run in to the same problem:
“dbt found two schema.yml entries for the same resource named s_customer. Resources and their associated columns may only be described a single time.”
Some example code
models/conf.yml
- name: s_customer
config:
materialized: incremental
unique_key : [h_customer_haskey,load_record]
incremental_strategy: merge
merge_exclude_columns: [h_customer_haskey,custkey]
columns:
- name: h_customer_haskey
tests:
- relationships:
field: h_customer_haskey
to: ref('h_customer')
models/cutomer/schema.yml
models:
- name: s_customer
description: "description"
columns:
- name: h_customer_haskey
description: "description"
- name: has_diff
description: "description"
- name: load_record
description: "description"
- name: is_active
description: "description"
- name: last_modified
description: "description"
- name: source
description: "description"
- name: custkey
description: "description"
- name: addres
description: "description"
- name: comment
description: "description"
- name: mktsegment
description: ""
- name: name
description: "descriptionr"
- name: phone
description: "description"
- name: accbal
description: ""
How could i solve my problem? I would like to avoid having all in the same file, becouse i have more models and they can have a lot of columns and is gona be horrible to look at the yml later on.
Sorry ahead of time, english aint my first lenguage.