Best Practices
dbt Metadata Sync
Datafold can automatically ingest dbt metadata from your production environment and display it in Data Explorer.
INFO
You can enable the metadata sync in your Orchestration settings.
Please note that when this feature is enabled, user editing of table metadata is disabled.
Model-level
The following model-level information can be synced:
description
is synchronized into the description field of the table into Lineage.- The
owner
of the table is set to the user identified by theuser@company.com
field. This user must exist in Datafold with that email. - The
foo
meta-information is added to the description field with the valuebar
. - The tags
pii
andbar
are applied to the table as tags.
Here’s an example configuration in YAML format:
Column-level
The following column-level information can be synced:
- The column
user_id
has two tags applied:pk
andid
. - The metadata for
user_id
is ignored because it reflects the primary key tag. - The
email
column has the description applied. - The
email
column has the tagpii
applied. - The
email
column has extra metadata information in the description field:type
with the valueemail
.
Here’s an example configuration for columns in YAML format: