Ingest Data Products from dbt
Assign tables to Data Products from your dbt project. List the Data Products undermeta.openmetadata.dataProducts in your dbt model. During dbt ingestion, Collate adds the table as an asset of each listed Data Product.
A Data Product is a curated group of data assets managed and shared as a single unit. For more information, see Data Products.
Requirements
The Data Product must exist in Collate before ingestion. Collate doesn’t create Data Products from dbt. If Collate can’t find a listed Data Product, it logs a warning and continues ingestion. If the Data Product belongs to a Domain, the table’s Domain must match it. Otherwise, Collate rejects the assignment. To set the table’s Domain from dbt, see Ingest Domain from dbt.Steps for Ingesting dbt Data Products
Follow these steps to assign tables to Data Products from dbt.- Create the Data Product in Collate, or use an existing one. Note its name.
-
Add a list of Data Product names under
model->name->meta->openmetadata->dataProductsin yourschema.ymlfile. A table can belong to more than one Data Product. For more information about the dbt meta field, see dbt meta documentation.Run your dbt workflow after you add the Data Products. The generatedmanifest.jsonfile reflects the assignment undernode_name->config->meta->openmetadata->dataProducts. - Run Collate dbt ingestion using the regenerated artifacts. For more information, see Configure the dbt Workflow.
- Verify that each Data Product’s Assets section lists the table. The table details page also lists the assigned Data Products.