View a markdown version of this page

Catalog system table - AWS Glue

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 glue namespace.

  • Business metadata: glossaries, glossary terms, term associations, and form attachments, in the catalog_metadata namespace.

  • 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.

Note

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

id

string

Yes

Unique identifier of the asset.

ingestion_time

timestamptz

Yes

Time this asset record was ingested into the system table, in UTC.

update_time

timestamptz

No

Time the asset was last updated in the AWS Glue Data Catalog, in UTC.

schema_version

string

Yes

Identifier of this system table's column layout. Changes when a column is added, removed, renamed, or retyped.

created_time

timestamptz

No

Time the resource was created, in UTC.

name

string

No

The user-provided business name for the asset.

description

string

No

The user-provided business description for the asset.

resource_name

string

Yes

The resource's technical name.

resource_description

string

No

The resource's technical description.

catalog_type_enum

string

Yes

The source-agnostic catalog classification. Values: Managed, Federated, Shared, System.

location

string

No

The storage location of the catalog.

parent_catalog_id

string

No

The compound catalog ID of the immediate parent catalog. Absent for top-level catalogs.

root_catalog_id

string

No

The compound catalog ID of the top-level catalog at the root of this catalog's hierarchy. Absent for top-level catalogs.

catalog_identifier

string

No

The immutable catalog identifier assigned by the Data Catalog. Stable across renames.

glue_catalog_type_enum

string

Yes

The catalog classification as reported by the Data Catalog. Values: Native, Federated, ResourceLink.

federated_source_federated_connection_type

string

No

The federation connection type, such as aws:s3tables or aws:redshift.

federated_source_federated_identifier

string

No

The identifier of this entity in the federation source.

resource_link_target_catalog_id

string

No

The compound catalog ID of the link target.

resource_link_target_database_name

string

No

The database name of the link target. Absent for catalog resource links.

resource_link_target_region

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

id

string

Yes

Unique identifier of the asset.

ingestion_time

timestamptz

Yes

Time this asset record was ingested into the system table, in UTC.

update_time

timestamptz

No

Time the asset was last updated in the Data Catalog, in UTC.

schema_version

string

Yes

Identifier of this system table's column layout.

created_time

timestamptz

No

Time the resource was created, in UTC.

name

string

No

The user-provided business name for the asset.

description

string

No

The user-provided business description for the asset.

resource_name

string

Yes

The resource's technical name.

resource_description

string

No

The resource's technical description.

database_type_enum

string

Yes

The source-agnostic database classification. Values: Managed, Federated, Shared.

location

string

No

The storage location of the database.

database_identifier

string

No

The immutable database identifier assigned by the Data Catalog. Stable across renames.

glue_database_type_enum

string

Yes

The database classification as reported by the Data Catalog. Values: Native, Federated, ResourceLink.

federated_source_federated_connection_type

string

No

The federation connection type, such as aws:s3tables or aws:redshift.

federated_source_federated_identifier

string

No

The identifier of this entity in the federation source.

resource_link_target_catalog_id

string

No

The compound catalog ID of the link target.

resource_link_target_database_name

string

No

The database name of the link target. Absent for catalog resource links.

resource_link_target_region

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

id

string

Unique identifier for the table.

catalog_id

string

Catalog identifier.

catalog_name

string

Catalog name.

update_time

timestamp

Last update timestamp.

created_time

timestamp

Creation timestamp.

created_by_id

string

Identifier of the principal that created the table.

created_by_type

string

Type of the creating principal.

description

string

Table description.

name

string

Table name.

namespace

string

Namespace of the table.

region_name

string

AWS Region.

tags

map<string, string>

Resource tags.

type

string

Asset type.

updated_by_id

string

Identifier of the principal that last updated the table.

updated_by_type

string

Type of the updating principal.

database_name

string

Database containing the table.

input_format

string

Input format class.

lake_formation_registration

string

AWS Lake Formation registration status.

output_format

string

Output format class.

owner

string

Table owner.

retention

int

Retention period.

serde_library

string

Serialization/deserialization library.

table_data_format

string

Data format.

table_data_location

string

Data location URI.

table_format

string

Table format (for example, Iceberg, Hudi).

table_type

string

Table type.

table_columns

Contains one row per column in a catalog table.

Column Type Description

id

string

Composite identifier in the format assetId#columnName.

asset_id

string

Identifier of the parent table.

column_name

string

Column name.

description

string

Column description.

type

string

Column data type.

is_partition_key

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

id

string

Unique glossary identifier.

description

string

Glossary description.

name

string

Glossary name.

status

string

Status (ENABLED or DISABLED).

glossary_terms

Contains one row per glossary term.

Column Type Description

id

string

Unique term identifier.

glossary_id

string

Identifier of the parent glossary.

long_description

string

Detailed term description.

name

string

Term name.

short_description

string

Brief term description.

status

string

Status (ENABLED or DISABLED).

associated_glossary_terms

Contains one row per association between a glossary term and an asset.

Column Type Description

asset_id

string

Identifier of the asset the glossary term is associated with.

glossary_term_id

string

Identifier of the glossary term associated with the asset. Joins to the glossary_terms table.

attachments

Contains asset-level custom-form attachments (one row per attachment on an asset).

Column Type Description

asset_id

string

Identifier of the parent asset.

attachment_name

string

Attachment name.

form_type_id

string

Registered form type of the content.

content_json

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

asset_id

string

Identifier of the parent asset.

iterable_form_name

string

Name of the iterable form (for example, columns).

item_name

string

Name of the item (for example, the column name).

attachment_name

string

Attachment name.

form_type_id

string

Registered form type of the content.

content_json

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';