Scripts for moving dbt lineage information into Purview. It can generate products information in purview (Metamodel data products))
This tool will allow to push data into purview when:
- dbt is executed and then lineage is caputred
- Anotations on Data Products will be pushed into Purview
- Relations between entities and data product is automatically gathered
The Script will perfrom the following actions:
- Prepare execution (check if everything is ready)
- Trigger dbt Entities generation
- generate dbt docs
- Detect lineage and write into _pv_folder
- Detect products and write into _pv_folder
- Push data from _pv_folder into Purview REST APIs
- Requires python 3.7 or later
- Requires a service principal (clientID and secret) with permissions to write in Purview
The following are requisites to make dbt and purview APIs work
- A purview account with a service principal
- Service principal ClientID and Secret as environment variables:
- PVClientID
- PVSecret
The script will run manually or triggered by some flavour of tool, orchestrator, or similar.
target => '-t', '--target'
project_dir => '--project-dir' || default value = './'
profile_name => '--profile'