OpenLineage integration with dbt
Project description
OpenLineage dbt integration
Wrapper script for automatic metadata collection from dbt
Features
Metadata
- Model run lifecycle
- Model inputs / outputs
Requirements
Right now, openlineage-dbt
only supports bigquery
, snowflake
, spark
and redshift
dbt adapters.
Installation
$ pip3 install openlineage-dbt
To install from source, run:
$ pip install .
Configuration
HTTP
Backend Environment Variables
openlineage-dbt
uses the OpenLineage client to push data to the OpenLineage backend.
The OpenLineage client depends on environment variables:
OPENLINEAGE_URL
- point to service which will consume OpenLineage eventsOPENLINEAGE_API_KEY
- set if consumer of OpenLineage events requiresBearer
authentication keyOPENLINEAGE_NAMESPACE
- set if you are using something other than thedefault
namespace for job namespace.
Usage
To begin collecting dbt metadata with OpenLineage, replace dbt run
with dbt-ol run
.
Additional table and column level metadata will be available if catalog.json
, a result of running dbt docs generate
, will be found in the target directory.
SPDX-License-Identifier: Apache-2.0
Copyright 2018-2023 contributors to the OpenLineage project
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
Built Distribution
Hashes for openlineage_dbt-0.25.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd154aa3e80f77d3e6c3930ac8b624edfed5411b91a8817d44753b3e8a6e1361 |
|
MD5 | 77b642db45b5950cd3d1f27d636b2860 |
|
BLAKE2b-256 | 6b5dbc2f2e21deb52a094cc7033a4538bf557ee504453cf79f7daef50b5c09b8 |