Giter VIP home page Giter VIP logo

dbt-pv's Introduction

dbt-pv

Scripts for moving dbt lineage information into Purview. It can generate products information in purview (Metamodel data products))

Purpose

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

Script subprocess logic

The Script will perfrom the following actions:

  1. Prepare execution (check if everything is ready)
  2. Trigger dbt Entities generation
  3. generate dbt docs
  4. Detect lineage and write into _pv_folder
  5. Detect products and write into _pv_folder
  6. Push data from _pv_folder into Purview REST APIs

Deployment

  • Requires python 3.7 or later
  • Requires a service principal (clientID and secret) with permissions to write in Purview

Prerequisites

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

Howto Run it

The script will run manually or triggered by some flavour of tool, orchestrator, or similar.

Script parameters

target => '-t', '--target'

project_dir => '--project-dir' || default value = './'

profile_name => '--profile'

dbt-pv's People

Contributors

constantino-casado avatar

Stargazers

Max Powis (BearingPoint) avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.