AWS Glue Schema Registry system tables schema and example queries
registries
Full name: "s3tablescatalog/aws-catalog"."glue"."registries". Partitioned by bucket(32, id).
The registries system table contains one row for each registry in your account and Region.
Column |
Type |
Required |
Description |
|---|---|---|---|
|
| Yes | Unique identifier of the asset. |
|
| Yes | Time this asset record was ingested into the system table, in UTC. |
|
| No | Time the asset was last updated in AWS Glue Data Catalog, in UTC. |
|
| Yes | Identifier of this system table's column layout. Changes when a column is added, removed, renamed, or retyped. |
|
| No | Time the resource was created, in UTC. |
|
| No | The user-provided business name for the asset. |
|
| No | The user-provided business description for the asset. |
|
| Yes | The resource's technical name. |
|
| No | The resource's technical description. |
|
| No | The lifecycle status of the registry. Values: |
schemas
Full name: "s3tablescatalog/aws-catalog"."glue"."schemas". Partitioned by bucket(32, id).
The schemas system table contains one row for each schema in your account and Region.
Column |
Type |
Required |
Description |
|---|---|---|---|
|
| Yes | Unique identifier of the asset. |
|
| Yes | Time this asset record was ingested into the system table, in UTC. |
|
| No | Time the asset was last updated in AWS Glue Data Catalog, in UTC. |
|
| Yes | Identifier of this system table's column layout. Changes when a column is added, removed, renamed, or retyped. |
|
| No | Time the resource was created, in UTC. |
|
| No | The user-provided business name for the asset. |
|
| No | The user-provided business description for the asset. |
|
| Yes | The resource's technical name. |
|
| No | The resource's technical description. |
|
| Yes | The data format of the schema definition. Values: |
|
| No | Every namespace declared in the schema definition, the root type's namespace first. On a schema version these are that version's namespaces; on a schema they are the latest version's. |
|
| No | The compatibility mode that governs how new schema versions may evolve. Values: |
|
| No | The version number of the latest schema version. |
|
| No | The version number of the next schema version to be assigned. |
|
| No | The version number of the schema checkpoint against which compatibility is evaluated. |
|
| No | The lifecycle status of the schema. Values: |
|
| No | Fully qualified identifier of the container asset this asset is a member of. |
schema_versions
Full name: "s3tablescatalog/aws-catalog"."glue"."schema_versions". Partitioned by bucket(32, id).
The schema_versions system table contains one row for each schema version in your account and Region.
Column |
Type |
Required |
Description |
|---|---|---|---|
|
| Yes | Unique identifier of the asset. |
|
| Yes | Time this asset record was ingested into the system table, in UTC. |
|
| No | Time the asset was last updated in AWS Glue Data Catalog, in UTC. |
|
| Yes | Identifier of this system table's column layout. Changes when a column is added, removed, renamed, or retyped. |
|
| No | Time the resource was created, in UTC. |
|
| No | The user-provided business name for the asset. |
|
| No | The user-provided business description for the asset. |
|
| Yes | The resource's technical name. |
|
| No | The resource's technical description. |
|
| Yes | The data format of the schema definition. Values: |
|
| No | Every namespace declared in the schema definition, the root type's namespace first. On a schema version these are that version's namespaces; on a schema they are the latest version's. |
|
| No | Customer-supplied metadata key-value pairs registered on this schema version, as returned by |
|
| No | The full schema definition text for this version. |
|
| Yes | The immutable, globally unique identifier assigned to this schema version by AWS Glue Schema Registry. |
|
| No | The lifecycle status of the schema version. Values: |
|
| Yes | The version number of this schema version within its schema. |
|
| No | Fully qualified identifier of the asset this asset is a version of. |
Example queries
Schemas by data format and compatibility mode
SELECT format_data_format_enum, compatibility_enum, count(*) AS schemas FROM "s3tablescatalog/aws-catalog"."glue"."schemas" GROUP BY 1, 2;
Schemas with the most versions
SELECT version_of, count(*) AS versions FROM "s3tablescatalog/aws-catalog"."glue"."schema_versions" GROUP BY 1 ORDER BY versions DESC LIMIT 20;