Catalog system table
When you turn on the catalog system table, the AWS Glue Data Catalog exports all of the assets in your Data Catalog to system tables. That includes their technical metadata, such as names, locations, formats, and columns, and their business metadata, such as glossary terms and form attachments.
-
AWS Glue resources: catalogs, databases, tables, and columns, in the
gluenamespace. -
Business metadata: glossaries, glossary terms, term associations, and form attachments, in the
catalog_metadatanamespace. -
Assets that other AWS services add to the Data Catalog, each in its own namespace.
How the catalog system table works
After you turn it on, the Data Catalog performs a one-time backfill of your existing metadata,
then keeps the system tables up to date as you make changes, typically within minutes.
While the backfill runs, the export status is ENABLING.
To turn on the catalog system table, see Turning system tables on and off.
This page describes the schemas for AWS Glue resources and business metadata.
Schema: AWS Glue resources
These tables describe your AWS Glue resources in the glue namespace. Each
table also includes the ingestion_time and schema_version
system columns.
catalogs
Full name: "s3tablescatalog/aws-catalog"."glue"."catalogs". Partitioned
by bucket(32, id).
The catalogs system table contains one row for each catalog in your account and Region, including federated catalogs and resource links. The following table describes the columns of the catalogs table.
| Column | Type | Required | Description |
|---|---|---|---|
| string | Yes | Unique identifier of the asset. |
| timestamptz | Yes | Time this asset record was ingested into the system table, in UTC. |
| timestamptz | No | Time the asset was last updated in the AWS Glue Data Catalog, in UTC. |
| string | Yes | Identifier of this system table's column layout. Changes when a column is added, removed, renamed, or retyped. |
| timestamptz | No | Time the resource was created, in UTC. |
| string | No | The user-provided business name for the asset. |
| string | No | The user-provided business description for the asset. |
| string | Yes | The resource's technical name. |
| string | No | The resource's technical description. |
| string | Yes | The source-agnostic catalog classification. Values: Managed, Federated, Shared, System. |
| string | No | The storage location of the catalog. |
| string | No | The compound catalog ID of the immediate parent catalog. Absent for top-level catalogs. |
| string | No | The compound catalog ID of the top-level catalog at the root of this catalog's hierarchy. Absent for top-level catalogs. |
| string | No | The immutable catalog identifier assigned by the Data Catalog. Stable across renames. |
| string | Yes | The catalog classification as reported by the Data Catalog. Values: Native, Federated, ResourceLink. |
| string | No | The federation connection type, such as aws:s3tables or aws:redshift. |
| string | No | The identifier of this entity in the federation source. |
| string | No | The compound catalog ID of the link target. |
| string | No | The database name of the link target. Absent for catalog resource links. |
| string | No | The Region of the link target, for cross-Region links. |
databases
Full name: "s3tablescatalog/aws-catalog"."glue"."databases". Partitioned
by bucket(32, id).
The databases system table contains one row for each database in your account and Region. The following table describes the columns of the databases table.
| Column | Type | Required | Description |
|---|---|---|---|
| string | Yes | Unique identifier of the asset. |
| timestamptz | Yes | Time this asset record was ingested into the system table, in UTC. |
| timestamptz | No | Time the asset was last updated in the Data Catalog, in UTC. |
| string | Yes | Identifier of this system table's column layout. |
| timestamptz | No | Time the resource was created, in UTC. |
| string | No | The user-provided business name for the asset. |
| string | No | The user-provided business description for the asset. |
| string | Yes | The resource's technical name. |
| string | No | The resource's technical description. |
| string | Yes | The source-agnostic database classification. Values: Managed, Federated, Shared. |
| string | No | The storage location of the database. |
| string | No | The immutable database identifier assigned by the Data Catalog. Stable across renames. |
| string | Yes | The database classification as reported by the Data Catalog. Values: Native, Federated, ResourceLink. |
| string | No | The federation connection type, such as aws:s3tables or aws:redshift. |
| string | No | The identifier of this entity in the federation source. |
| string | No | The compound catalog ID of the link target. |
| string | No | The database name of the link target. Absent for catalog resource links. |
| string | No | The Region of the link target, for cross-Region links. |
tables
Full name: "s3tablescatalog/aws-catalog"."glue"."tables".
Contains one row per catalog table.
| Column | Type | Description |
|---|---|---|
| string | Unique identifier for the table. |
| string | Catalog identifier. |
| string | Catalog name. |
| timestamp | Last update timestamp. |
| timestamp | Creation timestamp. |
| string | Identifier of the principal that created the table. |
| string | Type of the creating principal. |
| string | Table description. |
| string | Table name. |
| string | Namespace of the table. |
| string | AWS Region. |
| map<string, string> | Resource tags. |
| string | Asset type. |
| string | Identifier of the principal that last updated the table. |
| string | Type of the updating principal. |
| string | Database containing the table. |
| string | Input format class. |
| string | AWS Lake Formation registration status. |
| string | Output format class. |
| string | Table owner. |
| int | Retention period. |
| string | Serialization/deserialization library. |
| string | Data format. |
| string | Data location URI. |
| string | Table format (for example, Iceberg, Hudi). |
| string | Table type. |
table_columns
Contains one row per column in a catalog table.
| Column | Type | Description |
|---|---|---|
| string | Composite identifier in the format |
| string | Identifier of the parent table. |
| string | Column name. |
| string | Column description. |
| string | Column data type. |
| boolean | Whether the column is a partition key. |
Schema: business metadata
These tables describe your business metadata in the catalog_metadata
namespace. Each table also includes the ingestion_time and
schema_version system columns.
glossaries
Contains one row per glossary.
| Column | Type | Description |
|---|---|---|
| string | Unique glossary identifier. |
| string | Glossary description. |
| string | Glossary name. |
| string | Status ( |
glossary_terms
Contains one row per glossary term.
| Column | Type | Description |
|---|---|---|
| string | Unique term identifier. |
| string | Identifier of the parent glossary. |
| string | Detailed term description. |
| string | Term name. |
| string | Brief term description. |
| string | Status ( |
associated_glossary_terms
Contains one row per association between a glossary term and an asset.
| Column | Type | Description |
|---|---|---|
| string | Identifier of the asset the glossary term is associated with. |
| string | Identifier of the glossary term associated with the asset. Joins to the |
attachments
Contains asset-level custom-form attachments (one row per attachment on an asset).
| Column | Type | Description |
|---|---|---|
| string | Identifier of the parent asset. |
| string | Attachment name. |
| string | Registered form type of the content. |
| string | Attachment content as a JSON-encoded string. |
item_attachments
Contains attachments on items within an iterable form, such as individual columns.
| Column | Type | Description |
|---|---|---|
| string | Identifier of the parent asset. |
| string | Name of the iterable form (for example, columns). |
| string | Name of the item (for example, the column name). |
| string | Attachment name. |
| string | Registered form type of the content. |
| string | Attachment content as a JSON-encoded string. |
Example queries
Federated catalogs and their source
SELECT resource_name, catalog_type_enum, federated_source_federated_connection_type, federated_source_federated_identifier FROM "s3tablescatalog/aws-catalog"."glue"."catalogs" WHERE federated_source_federated_connection_type IS NOT NULL;
Databases that are resource links, and where they point
SELECT resource_name, resource_link_target_catalog_id, resource_link_target_database_name, resource_link_target_region FROM "s3tablescatalog/aws-catalog"."glue"."databases" WHERE resource_link_target_database_name IS NOT NULL;
List all catalog tables with their database and format
SELECT id, name, database_name, table_format FROM "s3tablescatalog/aws-catalog"."glue"."tables";
Find columns with descriptions for a specific table
SELECT column_name, type, description FROM "s3tablescatalog/aws-catalog"."glue"."table_columns" WHERE asset_id = 'table-id';
Join glossary terms to their parent glossary
SELECT g.name AS glossary_name, t.name AS term_name, t.short_description FROM "s3tablescatalog/aws-catalog"."catalog_metadata"."glossary_terms" t JOIN "s3tablescatalog/aws-catalog"."catalog_metadata"."glossaries" g ON t.glossary_id = g.id WHERE g.status = 'ENABLED';
Find tables associated with a specific glossary term
SELECT t.name, t.database_name, gt.name AS term_name FROM "s3tablescatalog/aws-catalog"."glue"."tables" t JOIN "s3tablescatalog/aws-catalog"."catalog_metadata"."associated_glossary_terms" agt ON agt.asset_id = t.id JOIN "s3tablescatalog/aws-catalog"."catalog_metadata"."glossary_terms" gt ON gt.id = agt.glossary_term_id WHERE gt.name = 'term-name';
Extract a field from a custom-form attachment
SELECT asset_id, attachment_name, json_extract_scalar(content_json, '$.owner') AS data_owner FROM "s3tablescatalog/aws-catalog"."catalog_metadata"."attachments" WHERE form_type_id = 'your-form-type-id';