Lineage Diff
Trigger Lineage Diff report and wait until report is returned
# First party modules
from paradime import Paradime
# Create a Paradime client with your API credentials
paradime = Paradime( api_endpoint="API_ENDPOINT", api_key="API_KEY", api_secret="API_SECRET")
# Replace with all the arguments to compare the git branches and generate the lineage diff report
BASE_COMMIT_SHA = "476a32a3d6dbba0bf1fcf5fac9a7b4225a752e8a"
HEAD_COMMIT_SHA = "f6465321d1a18d60b633e68aa369b4c4e6454f9d"
CHANGED_FILES = ["dbt/models/marts/core/order_items.sql", "dbt/models/marts/core/new_model.sql"]
PULL_REQUEST_NUMBER = 24
REPO_NAME = "paradime-io/jaffle-shop"
USER_EMAIL = "[email protected]"
# Trigger lineage diff report and wait until completed
report = paradime.lineage_diff.trigger_report_and_wait(
base_commit_sha=BASE_COMMIT_SHA,
head_commit_sha=HEAD_COMMIT_SHA,
changed_file_paths=CHANGED_FILES,
pull_request_number=PULL_REQUEST_NUMBER,
repository_name=REPO_NAME,
user_email=USER_EMAIL
)Report object details
Last updated
Was this helpful?