Snowflake-Labs / OpenLineage-AccessHistory-Setup

Guideline to extract table lineage info in OpenLineage format from access history view
Apache License 2.0
10 stars 5 forks source link

OpenLineage Adapter

Overview

Guideline to extract lineage info in OpenLineage format from Snowflake ACCESS_HISTORY view.

Code Deployment

OPENLINEAGE_ACCESS_HISTORY View

View Defintion

open_lineage_access_history.sql is the script to create the view from ACCESS_HISTORY and QUERY_HISTORY that outputs each query that accesses tables in the account in OpenLineage JsonSchema specification.

Prerequisite

Set your account's organization name to the session variable current_organization before creating the view and running each query on the view.

Example

set current_organization='my_org';