Skip to content

meta and tags should be configs under columns: (not properties) #11651

@graciegoheen

Description

@graciegoheen

Housekeeping

  • I am a maintainer of dbt-core

Short description

tags and meta are all being deprecated as properties and moved under config:

models:
  - name: <model_name>
    config:
      tags: ...
      meta: ...

we should do the same thing for tags and meta under columns: property with actual inheritance

Image

Acceptance criteria

1. I can define tags and meta under new config: property under columns:

models:
  - name: <model_name>
    columns:
      - name: <column_name>
        config:
          tags: ...
          meta: ...

2. project -> model -> column inheritance should work the same way it does for tags and meta in other places

from our docs:

  • tags are additive. If a model has some tags configured in dbt_project.yml, and more tags applied in its .sql file, the final set of tags will include all of them.
  • meta dictionaries are merged (a more specific key-value pair replaces a less specific value with the same key)
  1. deprecation warning for tags and meta under columns: as properties

Metadata

Metadata

Assignees

Labels

user docs[docs.getdbt.com] Needs better documentation

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions