-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ingest): dbt cloud integration (#6323)
- Loading branch information
Showing
12 changed files
with
1,186 additions
and
645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Ingesting metadata from dbt requires either using the **dbt** module or the **dbt-cloud** module. | ||
|
||
### Concept Mapping | ||
|
||
| Source Concept | DataHub Concept | Notes | | ||
| ------------------------ | ------------------------------------------------------------- | --------------------- | | ||
| `"dbt"` | [Data Platform](../../metamodel/entities/dataPlatform.md) | | | ||
| dbt Source | [Dataset](../../metamodel/entities/dataset.md) | Subtype `source` | | ||
| dbt Seed | [Dataset](../../metamodel/entities/dataset.md) | Subtype `seed` | | ||
| dbt Model - materialized | [Dataset](../../metamodel/entities/dataset.md) | Subtype `table` | | ||
| dbt Model - view | [Dataset](../../metamodel/entities/dataset.md) | Subtype `view` | | ||
| dbt Model - incremental | [Dataset](../../metamodel/entities/dataset.md) | Subtype `incremental` | | ||
| dbt Model - ephemeral | [Dataset](../../metamodel/entities/dataset.md) | Subtype `ephemeral` | | ||
| dbt Test | [Assertion](../../metamodel/entities/assertion.md) | | | ||
| dbt Test Result | [Assertion Run Result](../../metamodel/entities/assertion.md) | | | ||
|
||
Note: | ||
|
||
1. It also generates lineage between the `dbt` nodes (e.g. ephemeral nodes that depend on other dbt sources) as well as lineage between the `dbt` nodes and the underlying (target) platform nodes (e.g. BigQuery Table -> dbt Source, dbt View -> BigQuery View). | ||
2. We also support automated actions (like add a tag, term or owner) based on properties defined in dbt meta. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
source: | ||
type: "dbt-cloud" | ||
config: | ||
token: ${DBT_CLOUD_TOKEN} | ||
|
||
# In the URL https://cloud.getdbt.com/next/deploy/107298/projects/175705/jobs/148094, | ||
# 107298 is the account_id, 175705 is the project_id, and 148094 is the job_id | ||
|
||
account_id: # set to your dbt cloud account id | ||
project_id: # set to your dbt cloud project id | ||
job_id: # set to your dbt cloud job id | ||
run_id: # set to your dbt cloud run id. This is optional, and defaults to the latest run | ||
|
||
target_platform: postgres | ||
|
||
# Options | ||
target_platform: "my_target_platform_id" # e.g. bigquery/postgres/etc. | ||
|
||
# sink configs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.