VDK Lineage plugin collects lineage (input -> job -> output) information and send it to a pre-configured destination.
Project description
VDK Lineage
VDK Lineage plugin provides lineage data (input data -> job -> output data) information and send it to a pre-configured destination. The lineage data is send using OpenLineage standard
At POC level currently.
Currently, lineage data is collected
- For each data job run/execution both start and end events including the status of the job (failed/succeeded)
- For each execute query we collect input and output tables.
TODOs:
- Collect status of the SQL query (failed, succeeded)
- Create parent /child relationship between sql event and job run event to track them better (single job can have multiple queries)
- Non-SQL lineage (ingest, load data,etc)
- Extend support for all queries
- provide more information using facets – op id, job version,
- figure out how to visualize parent/child relationships in Marquez
- Explore openlineage.sqlparser instead of sqllineage library as alternative
Usage
pip install vdk-lineage
And it will start collecting lineage from job and sql queries.
To send data using openlineage specify VDK_OPENLINEAGE_URL. For example:
export VDK_OPENLINEAGE_URL=http://localhost:5002
vdk marquez-server --start
vdk run some-job
# check UI for lineage
# stopping the server will delete any lineage data.
vdk marquez-server --stop
Build and testing
In order to build and test a plugin go to the plugin directory and use ../build-plugin.sh
script to build it
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file vdk-lineage-0.3.826474487.tar.gz
.
File metadata
- Download URL: vdk-lineage-0.3.826474487.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16620e3d762fd636e0c11db8de7c907c8b3de17ce15e4ceb8adecdc1c9f4bf55 |
|
MD5 | 9b74b5d5f39355b8bee517f51d1e1fe1 |
|
BLAKE2b-256 | cb2967b5070fb07ab5200d5e718e8febb0224fba5017e301410ffd3769392e6d |