![[Update] Lineage Capabilities Have Been Built into the AWS Glue Data Catalog, So I Tried Table- and Column-Level Lineage with a Glue 6.1 Job](https://devio2024-media.developers.io/image/upload/f_auto,q_auto/c_limit,w_1200/v1790870377/eyecatch/kjl12txf2xakoko9pzvo.png)
[Update] Lineage Capabilities Have Been Built into the AWS Glue Data Catalog, So I Tried Table- and Column-Level Lineage with a Glue 6.1 Job
This page has been translated by machine translation. View original
I'm Ishikawa from the Cloud Business Division. AWS Glue Data Catalog now natively supports a lineage feature (data lineage) that records the data read and written by jobs down to the column level. I ran an AWS Glue 6.1 job and tried the lineage graph in the Management Console, column-level lineage, and the Lineage System Table that you can query from Amazon Athena.
AWS announced a feature in which AWS Glue Data Catalog (hereafter, Data Catalog) automatically records lineage for data and AI assets. It is enabled by default in Amazon SageMaker AI and in supported versions of Amazon EMR and AWS Glue.

When you run a job, the data it reads and writes is recorded in the Data Catalog down to the column level as OpenLineage events, and compiled into a per-account dependency graph. You can view the graph in the AWS Glue console and also retrieve it via API. If you enable the read-only system table, you can query it with SQL from Apache Iceberg-compatible engines such as DuckDB and Amazon Athena.
The announcement says the feature is available in all AWS Regions where the Data Catalog is available. (At the time of writing, Glue 6.1 was not yet deployed in the Tokyo Region, so the lineage feature was not usable there.)
What is Glue Data Catalog Lineage?
Glue Data Catalog Lineage is a feature in which, when a job or query writes data, the service that ran it sends a lineage event to the Data Catalog, building one lineage graph per AWS account and Region.
Each event is an OpenLineage RunEvent. OpenLineage is an open specification for describing job runs and the datasets those jobs read and write. OpenLineage producers such as Apache Spark, Apache Airflow, and dbt can also send events to the Data Catalog.
Here are the main specifications.
| Item | Details |
|---|---|
| Services that send automatically | Amazon EMR (emr-spark-8.2.0 or later), AWS Glue (6.1 or later), Amazon SageMaker AI, Data Catalog table creation (crawlers, etc.) |
| Recorded operations | CTAS, INSERT, MERGE, UPDATE, DELETE, DataFrame writes, and DDL such as CREATE TABLE. SELECT-only queries are not recorded |
| Required permission | glue:PostLineageEvent on the job role (included in the managed policy AWSGlueServiceRole). Without it, the job does not fail; lineage is just not sent |
| Graph scope | One per AWS account per Region. Cross-account is not supported |
| How to view | Lineage tab in the Glue console, GetLineageNode API, SQL on the Lineage System Table, SageMaker AI Studio |
| How to stop | Spark property spark.openlineage.disabled=true, or deny glue:PostLineageEvent |
The Lineage System Table is a read-only Apache Iceberg table lineage.events created in the AWS-managed Amazon S3 Tables table bucket aws-catalog. It is off by default; when turned on, each event is recorded as one row. New events usually appear in about 5 minutes, and the table is partitioned by day(event_time).
For lineage issued automatically by AWS services such as EMR, Glue, and SageMaker AI, there is no charge for publishing and storage. Reads such as GetLineageNode are billed per request.
I made a diagram showing where lineage is sent from and where it can be viewed.
Trying It Out
Test setup
I turned CSVs in S3 into raw tables with a crawler, then created a staging table and a mart table with two Glue 6.1 jobs. Data preparation was done with the CLI, and everything else in the Management Console.
Prerequisites
- AWS account (an environment where the Lake Formation setting "Use only IAM access control for new databases" is off)
- The operator's IAM role is a Lake Formation data lake administrator
- Test Region: US East (Ohio) us-east-2 (the reason is explained in the next section)
- AWS Glue 6.1 (Apache Spark 4.1.3, Python 3.14)
- AWS CLI: aws-cli/2.42.6
Glue 6.1 could not be selected in the Tokyo Region
I first tried the Tokyo Region. When I opened Glue version in the Glue Studio job details, the choices went only up to Glue 6.0, and 6.1 was not shown. The description of Auto also said "currently, Glue 6.0".

After saving the job, I tried to change the Glue version to 6.1 with the CLI and got the following error.
% aws glue update-job --job-name lineage-demo-enrich --job-update file://work/enrich_job_update.json --region ap-northeast-1
aws: [ERROR]: An error occurred (InvalidInputException) when calling the UpdateJob operation: Glue version: 6.1 is invalid
In Glue Studio in us-east-1 as well, the choices went only up to 6.0. In us-east-2 I could select Glue 6.1, so I ran the rest of the test in us-east-2.

Note that even in the Tokyo Region, EMR's emr-spark-8.2.0 was included in the release label list. I did not test with EMR this time.
% aws emr list-release-labels --region ap-northeast-1 --filters Prefix=emr-spark --query ReleaseLabels --output json
[
"emr-spark-8.0.0",
"emr-spark-8.1.0",
"emr-spark-8.2.0"
]
Preparing the data
The sample data consists of CSVs for orders (12 rows), customers (6 rows), and products (5 rows).
orders.csv : order_id,order_date,customer_id,product_id,quantity,status
customers.csv : customer_id,customer_name,email,region
products.csv : product_id,product_name,category,unit_price
Create an S3 bucket and upload the CSVs.
% aws s3api create-bucket --bucket glue-lineage-demo-e9dd40b4-use2 --region us-east-2 --create-bucket-configuration LocationConstraint=us-east-2
{
"Location": "http://glue-lineage-demo-e9dd40b4-use2.s3.amazonaws.com/",
"BucketArn": "arn:aws:s3:::glue-lineage-demo-e9dd40b4-use2"
}
% aws s3 cp sample_data/ s3://glue-lineage-demo-e9dd40b4-use2/raw/ --recursive --only-show-errors
% aws s3 ls s3://glue-lineage-demo-e9dd40b4-use2/ --recursive
2026-11-30 14:00:13 317 raw/customers/customers.csv
2026-11-30 14:00:12 465 raw/orders/orders.csv
2026-11-30 14:00:12 182 raw/products/products.csv
Create the IAM role used by the crawler and jobs. Because AWSGlueServiceRole includes glue:PostLineageEvent, I did not add any permissions for lineage. Access to the S3 bucket was granted with an inline policy.
% aws iam create-role --role-name GlueLineageDemoRole --assume-role-policy-document file://work/trust.json --tags Key=run_id,Value=lineage-20261130-e9dd40b4 Key=purpose,Value=blog-verification Key=ttl,Value=2026-12-07 --query 'Role.[RoleName,Arn]' --output text
GlueLineageDemoRole arn:aws:iam::123456789012:role/GlueLineageDemoRole
% aws iam attach-role-policy --role-name GlueLineageDemoRole --policy-arn arn:aws:iam::aws:policy/service-role/AWSGlueServiceRole
% aws iam put-role-policy --role-name GlueLineageDemoRole --policy-name S3AccessLineageDemoBucket --policy-document file://work/s3-access.json
Create the Glue database lineage_demo. The test environment is managed with Lake Formation permissions, so to keep the test simple, I granted ALL to IAM_ALLOWED_PRINCIPALS for this database only, so that it can be accessed with IAM policies.
% aws glue create-database --region us-east-2 --database-input '{"Name":"lineage_demo","Description":"Glue Data Catalog Lineage demo","CreateTableDefaultPermissions":[{"Principal":{"DataLakePrincipalIdentifier":"IAM_ALLOWED_PRINCIPALS"},"Permissions":["ALL"]}]}' --tags run_id=lineage-20261130-e9dd40b4,purpose=blog-verification,ttl=2026-12-07
% aws lakeformation grant-permissions --region us-east-2 --principal DataLakePrincipalIdentifier=IAM_ALLOWED_PRINCIPALS --permissions ALL --resource '{"Database":{"Name":"lineage_demo"}}'
% aws lakeformation list-permissions --region us-east-2 --resource '{"Database":{"Name":"lineage_demo"}}' --query 'PrincipalResourcePermissions[].[Principal.DataLakePrincipalIdentifier,join(`,`,Permissions)]' --output table
-----------------------------------------------------------------------------------------------
| ListPermissions |
+----------------------------------------------------+----------------------------------------+
| arn:aws:iam::123456789012:role/cm-ishikawa.satoru | ALL,ALTER,CREATE_TABLE,DESCRIBE,DROP |
| IAM_ALLOWED_PRINCIPALS | ALL |
+----------------------------------------------------+----------------------------------------+
Enabling the Lineage System Table
Open [Catalog settings] in the Glue console, turn on [Lineage system table] in the [System tables] tab, and press [Save]. As shown on screen, the table name is aws-catalog.lineage.events.


After saving, the AWS-managed table bucket aws-catalog was created in S3 Tables, and the events table was created in the lineage namespace. These are the results I checked before cleanup. The table bucket creation time (UTC 05:00:55) matches the time I saved the setting.
% aws s3tables get-table-bucket --region us-east-2 --table-bucket-arn arn:aws:s3tables:us-east-2:123456789012:bucket/aws-catalog --query '{name:name,createdAt:createdAt,type:type}' --output table
-------------------------------------------------------------
| GetTableBucket |
+-----------------------------------+---------------+-------+
| createdAt | name | type |
+-----------------------------------+---------------+-------+
| 2026-11-30T05:00:55.184727+00:00 | aws-catalog | aws |
+-----------------------------------+---------------+-------+
% aws s3tables list-tables --region us-east-2 --table-bucket-arn arn:aws:s3tables:us-east-2:123456789012:bucket/aws-catalog --query 'tables[].[namespace[0],name,createdAt]' --output table
-----------------------------------------------------------
| ListTables |
+---------+---------+-------------------------------------+
| lineage| events | 2026-11-30T05:07:14.318440+00:00 |
+---------+---------+-------------------------------------+
To query from Athena, I also configured the following two items in the console. According to the documentation, querying the System Table requires read permissions for S3 Tables and the Data Catalog in addition to these.
- In the S3 console under [Table buckets], enable integration with AWS analytics services
- In Lake Formation, grant Select and Describe on the
lineage.eventstable of theaws-catalogcatalog to the IAM role that runs queries
Creating raw tables with a crawler
I created the crawler lineage-demo-raw-crawler in the Glue console. The data source is s3://glue-lineage-demo-e9dd40b4-use2/raw/, the IAM role is GlueLineageDemoRole, the output database is lineage_demo, and the table name prefix is raw_. Running it created three tables: raw_orders, raw_customers, and raw_products.
Before viewing lineage, I was confused about where the Lineage tab is. When you open a table from [Data Catalog] > [Tables], there are only two tabs, [Table overview] and [Data quality], and no Lineage tab.

If you open the catalog, database, and table in that order from [Catalog explorer], the table details have a [Lineage] tab. The documentation's steps also go through Catalog explorer.
The lineage of the tables created by the crawler was displayed with three nodes: the S3 location dataset, the crawler's job node, and the table. I checked this part in the Tokyo Region, where lineage for crawler-created tables was recorded as well.

When you select the job node, details appear on the right. Source was glue_crawler.lineage-demo-raw-crawler/lineage_demo.raw_orders, Created by was glue.amazonaws.com, and Integration was glue.

Creating and running Glue 6.1 jobs
In Glue Studio, I chose [Script editor] > [Upload script] and created jobs from the following two scripts. So that re-runs can write to the same tables, each script creates the table with CREATE TABLE IF NOT EXISTS and writes with INSERT OVERWRITE. I did not add any settings or libraries for lineage.
The first job, lineage-demo-enrich, joins the three raw tables and writes only completed orders to stg_enriched_orders.
from pyspark.sql import SparkSession
spark = SparkSession.builder.enableHiveSupport().getOrCreate()
BUCKET = "s3://glue-lineage-demo-e9dd40b4-use2"
# Output table (created only on first run)
spark.sql(f"""
CREATE TABLE IF NOT EXISTS lineage_demo.stg_enriched_orders (
order_id BIGINT,
order_date DATE,
customer_id BIGINT,
region STRING,
product_name STRING,
category STRING,
quantity BIGINT,
amount BIGINT
)
USING parquet
LOCATION '{BUCKET}/staging/enriched_orders/'
""")
# JOIN the 3 raw tables and write only completed orders
spark.sql("""
INSERT OVERWRITE TABLE lineage_demo.stg_enriched_orders
SELECT o.order_id,
CAST(o.order_date AS DATE) AS order_date,
o.customer_id,
c.region,
p.product_name,
p.category,
o.quantity,
o.quantity * p.unit_price AS amount
FROM lineage_demo.raw_orders o
JOIN lineage_demo.raw_customers c ON o.customer_id = c.customer_id
JOIN lineage_demo.raw_products p ON o.product_id = p.product_id
WHERE o.status = 'COMPLETED'
""")
The second job, lineage-demo-aggregate, aggregates stg_enriched_orders by region and category and writes to mart_sales_by_region.
from pyspark.sql import SparkSession
spark = SparkSession.builder.enableHiveSupport().getOrCreate()
BUCKET = "s3://glue-lineage-demo-e9dd40b4-use2"
# Output table (created only on first run)
spark.sql(f"""
CREATE TABLE IF NOT EXISTS lineage_demo.mart_sales_by_region (
region STRING,
category STRING,
order_count BIGINT,
total_amount BIGINT
)
USING parquet
LOCATION '{BUCKET}/mart/sales_by_region/'
""")
# Aggregate by region × category
spark.sql("""
INSERT OVERWRITE TABLE lineage_demo.mart_sales_by_region
SELECT region,
category,
COUNT(*) AS order_count,
SUM(amount) AS total_amount
FROM lineage_demo.stg_enriched_orders
GROUP BY region, category
""")
In the [Job details] tab, I selected GlueLineageDemoRole for the IAM role and Glue 6.1 for Glue version. When Glue 6.1 is selected, Worker type is set to G 1X Graviton and Scaling profile to Balanced. Since this is for testing, I changed Maximum number of workers to 2 and Job timeout to 15 minutes.

There is also a [Generate lineage events] checkbox, but as its description says, it is a setting for sending lineage to Amazon DataZone or Amazon SageMaker Unified Studio. I left it off this time.

This is the saved job configuration checked with the CLI (excerpt).
% aws glue get-job --job-name lineage-demo-enrich --region us-east-2 --query 'Job.{GlueVersion:GlueVersion,WorkerType:WorkerType,NumberOfWorkers:NumberOfWorkers,Timeout:Timeout,Role:Role,DefaultArguments:DefaultArguments}' --output json
{
"GlueVersion": "6.1",
"WorkerType": "G.1X.GRAVITON",
"NumberOfWorkers": 2,
"Timeout": 15,
"Role": "arn:aws:iam::123456789012:role/GlueLineageDemoRole",
"DefaultArguments": {
...
"--enable-glue-datacatalog": "",
...
"--scaling-profile": "balanced",
"--job-bookmark-option": "job-bookmark-disable",
"--job-language": "python",
...
}
}
When I ran lineage-demo-enrich with [Run], the first run failed after 38 seconds.

Error Category: PERMISSION_ERROR; AnalysisException: Unable to verify existence of default database: com.amazonaws.glue.shaded.awssdk.services.glue.model.AccessDeniedException: Insufficient Lake Formation permission(s): Required Describe on default (Service: Glue, Status Code: 400, ...)
When Spark checks the default database in the Data Catalog, the job role lacked the Lake Formation Describe permission, which caused the error. I selected default in [Databases] in the Lake Formation console, granted Describe to GlueLineageDemoRole via [Actions] > [Grant], and re-ran, and it succeeded in 53 seconds.

I then ran lineage-demo-aggregate, and it succeeded in 57 seconds (DPU time 0.033333).

Checking table lineage
I opened stg_enriched_orders in Catalog explorer and displayed the [Lineage] tab. The three raw tables connect through a job node to stg_enriched_orders, and further left the crawler's job node and the S3 dataset are also shown.

There were two job nodes.
runscript_py.adaptive_spark_plan.staging_enriched_orders: the INSERT statement. The three raw tables connect upstreamrunscript_py.execute_create_data_source_table_command.lineage_demo_stg_enriched_orders: theCREATE TABLE IF NOT EXISTSstatement. Nothing upstream
When I selected the INSERT job node, the following details were shown.

| Item | Value |
|---|---|
| Name | runscript_py.adaptive_spark_plan.staging_enriched_orders |
| Type | Job |
| Source | default.runscript_py.adaptive_spark_plan.staging_enriched_orders |
| Created by | arn:aws:iam::123456789012:role/GlueLineageDemoRole |
| Processing type | BATCH |
| Integration | SPARK |
| Job type | SQL_JOB |
The job node name was not the Glue job name lineage-demo-enrich. The end of the name is staging_enriched_orders, which follows the output S3 path staging/enriched_orders rather than the table name stg_enriched_orders.
In the Lineage tab of mart_sales_by_region (5 levels), I could trace back through stg_enriched_orders and the three raw tables to the crawler's job node.

Conversely, the Lineage tab of raw_customers showed the downstream stg_enriched_orders and mart_sales_by_region. Before changing raw_customers, you can check on this screen which tables will be affected.

Checking column lineage
Expanding [N schema columns] on a dataset node shows a list of columns. If you also expand the columns of the upstream table, dotted lines connect the columns to each other.
region in stg_enriched_orders was connected to raw_customers.region. There are no lines from customer_name and email in raw_customers.

amount was connected to two columns, raw_orders.quantity and raw_products.unit_price. This corresponds to o.quantity * p.unit_price in the SQL.


In mart_sales_by_region, region and category were connected to the same-named columns of stg_enriched_orders, and total_amount to stg_enriched_orders.amount.


Here is a summary of the column lineage I checked.
| Output column | Input columns shown in the console | SQL |
|---|---|---|
stg_enriched_orders.region |
raw_customers.region |
c.region |
stg_enriched_orders.product_name |
raw_products.product_name |
p.product_name |
stg_enriched_orders.category |
raw_products.category |
p.category |
stg_enriched_orders.amount |
raw_orders.quantity, raw_products.unit_price |
o.quantity * p.unit_price |
mart_sales_by_region.region |
stg_enriched_orders.region |
GROUP BY region |
mart_sales_by_region.category |
stg_enriched_orders.category |
GROUP BY category |
mart_sales_by_region.total_amount |
stg_enriched_orders.amount |
SUM(amount) |
mart_sales_by_region.order_count |
Not shown | COUNT(*) |
No line was shown in the console from raw_orders.status, which was used in the WHERE clause. According to the documentation, transformations that affect the output without copying values, such as filters and joins, are treated as INDIRECT and may not be shown in the console. The GetLineageNode API is said to return INDIRECT as well (I did not check this via the API this time).
Querying the Lineage System Table with Athena
In the Athena query editor (workgroup primary), I retrieved events from the last day. I ran the query about 4 minutes after job 2 finished (UTC 05:19), and the COMPLETE event of job 2 was already available.
SELECT event_time, event_type_enum, platform, platform_resource_id,
statement_type, execution_role, output_dataset_ids
FROM "s3tablescatalog/aws-catalog"."lineage"."events"
WHERE event_time > current_timestamp - interval '1' day
ORDER BY event_time;

There were 29 rows in the result. The table omits the execution_role column, and output_dataset_ids is shortened from the Glue table ARN (arn:aws:glue:us-east-2:123456789012:table/lineage_demo/<table name>) to just the table name. The execution_role of all GLUE_ETL rows was arn:aws:iam::123456789012:role/GlueLineageDemoRole.
| # | event_time (UTC) | event_type_enum | platform | platform_resource_id | statement_type | output_dataset_ids |
|---|---|---|---|---|---|---|
| 1 | 05:05:45 | COMPLETE | [raw_products] | |||
| 2 | 05:05:45 | COMPLETE | [raw_orders] | |||
| 3 | 05:05:45 | COMPLETE | [raw_customers] | |||
| 4 | 05:08:02 | START | GLUE_ETL | lineage-demo-enrich | [] | |
| 5 | 05:08:11 | START | GLUE_ETL | lineage-demo-enrich | CREATE_TABLE | [stg_enriched_orders] |
| 6 | 05:08:12 | COMPLETE | GLUE_ETL | lineage-demo-enrich | [stg_enriched_orders] | |
| 7 | 05:08:13 | COMPLETE | GLUE_ETL | lineage-demo-enrich | [] | |
| 8 | 05:14:14 | START | GLUE_ETL | lineage-demo-enrich | [] | |
| 9 | 05:14:23 | START | GLUE_ETL | lineage-demo-enrich | CREATE_TABLE | [stg_enriched_orders] |
| 10 | 05:14:26 | COMPLETE | GLUE_ETL | lineage-demo-enrich | [stg_enriched_orders] | |
| 11 | 05:14:27 | START | GLUE_ETL | lineage-demo-enrich | INSERT | [stg_enriched_orders] |
| 12〜18 | 05:14:28〜05:14:34 | RUNNING | GLUE_ETL | lineage-demo-enrich | INSERT | [stg_enriched_orders] |
| 19 | 05:14:35 | COMPLETE | GLUE_ETL | lineage-demo-enrich | [stg_enriched_orders] | |
| 20 | 05:14:36 | COMPLETE | GLUE_ETL | lineage-demo-enrich | [] | |
| 21 | 05:18:32 | START | GLUE_ETL | lineage-demo-aggregate | [] | |
| 22 | 05:18:41 | START | GLUE_ETL | lineage-demo-aggregate | CREATE_TABLE | [mart_sales_by_region] |
| 23 | 05:18:44 | COMPLETE | GLUE_ETL | lineage-demo-aggregate | [mart_sales_by_region] | |
| 24 | 05:18:45 | START | GLUE_ETL | lineage-demo-aggregate | INSERT | [mart_sales_by_region] |
| 25〜27 | 05:18:46〜05:18:59 | RUNNING | GLUE_ETL | lineage-demo-aggregate | INSERT | [mart_sales_by_region] |
| 28 | 05:19:00 | COMPLETE | GLUE_ETL | lineage-demo-aggregate | [mart_sales_by_region] | |
| 29 | 05:19:00 | COMPLETE | GLUE_ETL | lineage-demo-aggregate | [] |
The results showed the following.
- Rows 1–3 are events for the tables created by the crawler, and
platform,platform_resource_id, andexecution_rolewere empty platform_resource_idcontains the Glue job name, so it can be used to find the Glue job from a job node name in the console- Rows 4–7 are the first run, which failed due to the Lake Formation permission error. The START and COMPLETE of
CREATE TABLEwere recorded, but there was noFAILevent - For a single INSERT, START, multiple RUNNING, and COMPLETE events were recorded
Next, for the COMPLETE events of the INSERT statements, I retrieved the query text, the columns read and written, and the metrics.
SELECT event_time, platform_resource_id, query_text,
input_columns_accessed, output_columns_accessed, metrics
FROM "s3tablescatalog/aws-catalog"."lineage"."events"
WHERE event_time > current_timestamp - interval '1' day
AND event_type_enum = 'COMPLETE'
AND cardinality(output_dataset_ids) > 0
AND platform = 'GLUE_ETL'
ORDER BY event_time;
The result was 5 rows; the 2 INSERT rows are shown below (dataset ARNs are shortened to table names).
[lineage-demo-enrich / 05:14:35]
query_text : INSERT OVERWRITE TABLE lineage_demo.stg_enriched_orders SELECT o.order_id, CAST(o.order_date AS DATE) AS order_date, o.customer_id, c.region, p.product_name, p.category, o.quantity, o.quantity * p.unit_price AS amount FROM lineage_demo.raw_orders o JOIN lineage_demo.raw_customers c ON o.customer_id = c.customer_id JOIN lineage_demo.raw_products p ON o.product_id = p.product_id WHERE o.status = 'COMPLETED'
input_columns_accessed : {raw_customers=[customer_id, region], raw_orders=[order_id, order_date, customer_id, product_id, quantity, status], raw_products=[product_id, product_name, category, unit_price]}
output_columns_accessed : {stg_enriched_orders=[order_id, order_date, customer_id, region, product_name, category, quantity, amount]}
metrics : {peakTaskMemoryBytes=1104.0, bytesWritten=2823.0, distinctExecutors=1.0, totalExecutorRunTimeMs=8459.0, rowsWritten=9.0}
[lineage-demo-aggregate / 05:19:00]
query_text : INSERT OVERWRITE TABLE lineage_demo.mart_sales_by_region SELECT region, category, COUNT(*) AS order_count, SUM(amount) AS total_amount FROM lineage_demo.stg_enriched_orders GROUP BY region, category
input_columns_accessed : {stg_enriched_orders=[region, category, amount]}
output_columns_accessed : {mart_sales_by_region=[region, category, total_amount]}
metrics : {peakTaskMemoryBytes=6.7370992E7, bytesWritten=1436.0, distinctExecutors=1.0, rowsWritten=6.0, bytesRead=2823.0, totalExecutorRunTimeMs=2258.0}
query_text contained the executed SQL as is. input_columns_accessed also includes status (WHERE clause), for which no line was shown in the console, as well as the join keys customer_id and product_id. The rowsWritten value of 9 matches the number of COMPLETED orders among the 12 orders.
The Athena scan size was 5.94 KB for the first query and 2.30 KB for the second.
Cleanup
I deleted the jobs, crawler, and database in the Glue console, and turned off the Lineage system table in [System tables] under [Catalog settings]. Even after turning it off, the aws-catalog table bucket and the events table remain.
% aws glue get-data-catalog-export-configuration --region us-east-2 --output json
{
...
"S3TablesConfiguration": {
"TableBucketArn": "arn:aws:s3tables:us-east-2:123456789012:bucket/aws-catalog",
...
},
...
"Lineage": {
"S3TablesExport": "DISABLED",
"S3TablesExportState": {
"Status": "DISABLED"
}
},
...
}
As also noted in [Table buckets] in the S3 console, the table bucket cannot be deleted from the console, so I deleted the events table, the lineage namespace, and the table bucket, in that order, with the CLI.
% aws s3tables delete-table --region us-east-2 --table-bucket-arn arn:aws:s3tables:us-east-2:123456789012:bucket/aws-catalog --namespace lineage --name events
% aws s3tables delete-namespace --region us-east-2 --table-bucket-arn arn:aws:s3tables:us-east-2:123456789012:bucket/aws-catalog --namespace lineage
% aws s3tables delete-table-bucket --region us-east-2 --table-bucket-arn arn:aws:s3tables:us-east-2:123456789012:bucket/aws-catalog
I also deleted the S3 bucket and IAM role with the CLI. Note that, according to the documentation, deleting a table does not delete its lineage.
Discussion
Lineage is recorded without adding any settings
Glue 6.1 jobs recorded table and column lineage in the Data Catalog without any script changes or additional job parameters. [Generate lineage events] in the job details is a separate setting for Amazon DataZone / SageMaker Unified Studio, and lineage was recorded in the Data Catalog even with it left off. The names are similar, so be careful not to confuse them.
The documentation also states that Glue does not add lineage settings to jobs or sessions tagged with AmazonDataZoneProject. If you use lineage with DataZone or SageMaker Unified Studio, it's worth checking that jobs in that setup do not get their lineage recorded in the Data Catalog.
Regions and Glue 6.1 availability
The announcement says the feature is available in all Regions where the Data Catalog is available, but as of November 30, 2026, Glue 6.1 could not be selected in the Tokyo Region or us-east-1, so I could not try lineage for Glue ETL jobs there. Lineage for crawler-created tables was recorded in the Tokyo Region too. In the Tokyo Region, emr-spark-8.2.0 was in the EMR release label list, but I did not verify its behavior.
Caution in environments managed with Lake Formation permissions
In this environment, a Glue 6.1 job failed with PERMISSION_ERROR unless the job role had Describe permission on the default database. This was not an error of the lineage feature; it came from Spark's check of the default database. If you run Glue 6.1 jobs in an environment managed with Lake Formation permissions, you need to check this permission as well.
Mapping job node names to Glue jobs
The job node names in the console had the form runscript_py.adaptive_spark_plan.<output name> and did not contain the Glue job name. Also, CREATE TABLE IF NOT EXISTS is recorded as a separate job node with nothing upstream. I could map a node to a Glue job through Created by (job role) in the node details or platform_resource_id in the System Table.
The console and the System Table show different ranges
In the console's column lineage, relationships where values are copied, calculated, or aggregated (DIRECT) were shown as lines, but there was no line for status used in the WHERE clause or for order_count created from COUNT(*). On the other hand, input_columns_accessed in the System Table also included columns used in the WHERE clause and JOINs. According to the documentation, the columnsAccessed facet, the source of input_columns_accessed, records columns used in projections, filters, joins, and aggregations from the optimized execution plan. If you want to know which jobs read a particular column, the System Table gives more information.
Don't use it as an audit log
In the failed first run, the START and COMPLETE of CREATE TABLE were recorded, but there was no FAIL event. The documentation also states that lineage is best effort and not recommended for use as an audit log, and that AWS CloudTrail and Lake Formation audit logs should be used to audit access.
Scope of read permissions
A principal with glue:GetLineageNode can view all lineage nodes in the account. Because nodes include query text and the roles that ran them, you should limit who is granted this permission.
Conclusion
I tried the AWS Glue Data Catalog lineage feature with Glue 6.1 jobs. Without adding any settings to the jobs, I could check table lineage and column-level lineage from the crawler-created raw tables to the mart table in the console, and when the Lineage System Table was enabled, I could retrieve the execution role, query text, columns read and written, and rows written with Athena SQL.
It can be used to check impact before changing tables or columns, and to investigate which tables a value in a report comes from. Since lineage automatically issued by AWS services has no publishing or storage charge, if you use Glue 6.1 or emr-spark-8.2.0 jobs, first check how your existing pipelines appear in the Lineage tab.
