

# What is data lineage in the AWS Glue Data Catalog?

AWS Glue Data Catalog Lineage records how your data moves and changes across AWS analytics services, machine learning services, and third-party sources. When a job or query writes data, the service that ran it sends a lineage event to AWS Glue Data Catalog. AWS Glue combines these events into a lineage graph for your AWS account in each AWS Region. The graph shows which jobs read which datasets, which datasets they wrote, and, where available, which source columns each output column came from.

Lineage is captured for supported AWS services by default. Supported releases of Amazon EMR and AWS Glue send lineage events for jobs that write data. Job roles need the `glue:PostLineageEvent` permission. You can also publish lineage from open-source tools and third-party platforms in the OpenLineage open format.

## What you can do with lineage
<a name="what-you-can-do-with-lineage"></a>
+ **Impact analysis.** Before you change or drop a table or column, find every job and downstream dataset that depends on it.
+ **Root cause analysis.** When a report or model shows a bad value, trace it back to the upstream job or dataset that produced it.
+ **Provenance and compliance.** Show where a dataset came from, how it was derived, and which jobs touch sensitive data.
+ **Audit with SQL.** Turn on the lineage system table to query every lineage event, including who ran each job, with SQL from Amazon Athena, Amazon Redshift, Amazon EMR, or any Apache Iceberg compatible engine.

## Key features
<a name="key-features"></a>
+ **Lineage by default for AWS services.** Amazon EMR (release emr-spark-8.2.0 and later), AWS Glue (version 6.1 and later), and Amazon SageMaker AI send lineage events by default. For the full list, see [Data lineage support matrix](catalog-lineage-support-matrix.md).
+ **Built on OpenLineage.** Every lineage event is an OpenLineage RunEvent. Any OpenLineage producer, such as Apache Spark, Apache Airflow, or dbt, can send events to AWS Glue Data Catalog.
+ **Column-level lineage.** For supported sources, lineage records which input columns each output column is derived from, and how.
+ **One graph across services.** A table written by AWS Glue and read by Amazon EMR appears as one node, because datasets in the Data Catalog resolve to their Glue table ARN.
+ **Lineage system table.** An optional, read-only Apache Iceberg table, `aws-catalog.lineage.events`, in your account stores each lineage event as a row.
+ **APIs.** Use `PostLineageEvent` to publish lineage and `GetLineageNode` to read it.

## Accessing lineage
<a name="accessing-lineage"></a>

You can view and use lineage in the following ways:
+ **AWS Glue console.** View the lineage graph for a table on the table's **Lineage** tab.
+ **Lineage APIs.** Call the AWS Glue lineage APIs with the AWS CLI or an AWS SDK.
+ **SQL.** Query the lineage system table.
+ **Amazon SageMaker AI Studio.** View lineage for AI assets and associated data assets.

## Pricing
<a name="pricing"></a>

For Glue Data Catalog Lineage pricing, see [AWS Glue pricing](https://aws.amazon.com/glue/pricing/).

## Regions
<a name="regions"></a>

AWS Glue Data Catalog Lineage is available in all AWS Regions where AWS Glue is available.