Amazon Redshift will no longer support the use of Python UDFs after June 30, 2026.
We will start enforcing it in phases. For more information on the details of Python end of life
and migration options, see the
blog post
Amazon Redshift asset types and fields in the AWS Glue Data Catalog
Each object that Metadata Discovery publishes becomes an asset in the AWS Glue Data Catalog. An asset has an asset type and a set of fields. This topic lists the asset types that Amazon Redshift publishes and the fields of each. For the asset types that other AWS services publish, see Asset types in the AWS Glue Data Catalog in the AWS Glue Developer Guide.
The fields of an asset are grouped into forms. A form is a named
group of fields. Forms with names that start with catalog:: are common to
assets from different sources. Forms with names that start with
amazon.redshift:: are specific to Amazon Redshift. When you read an asset, each
form is returned under its name, with its fields as JSON content. For more information,
see GetAsset in the AWS Glue Web API Reference.
A field that doesn't apply to an object is absent from its asset.
Asset types
The following table shows the asset types that Amazon Redshift publishes, the object that an asset of each type describes, and the type of the asset that contains it.
| Asset type | Amazon Redshift object | Contained in |
|---|---|---|
amazon.redshift::Namespace |
Provisioned cluster or serverless namespace | None |
amazon.redshift::Database |
Database | amazon.redshift::Namespace |
amazon.redshift::Schema |
Schema | amazon.redshift::Database |
amazon.redshift::Relation |
Table, view, late-binding view, or materialized view | amazon.redshift::Schema |
Namespace assets
The following table shows the fields of an asset of type amazon.redshift::Namespace.
| Form | Field | Type | Description |
|---|---|---|---|
catalog::Resource |
name |
String | The resource's technical name. For this asset type, the name is the namespace identifier. |
amazon.redshift::RedshiftResource |
namespaceId |
String | The GUID of the Amazon Redshift namespace that hosts this object, equal to the namespace segment of namespaceArn. |
namespaceArn |
String | The ARN of the Amazon Redshift namespace that hosts this object: arn:{partition}:redshift:{region}:{account}:namespace:{guid} for a provisioned cluster, arn:{partition}:redshift-serverless:{region}:{account}:namespace/{guid} for a serverless namespace. Immutable for the lifetime of the namespace. |
Database assets
The following table shows the fields of an asset of type amazon.redshift::Database.
| Form | Field | Type | Description |
|---|---|---|---|
catalog::Resource |
name |
String | The resource's technical name. |
catalog::Database |
databaseType |
String |
The coarse, source-agnostic database classification. Valid values:
|
catalog::RelatedTo |
belongsTo |
String | Fully qualified identifier of the container asset this asset is a member of. |
amazon.redshift::RedshiftResource |
namespaceId |
String | The GUID of the Amazon Redshift namespace that hosts this object, equal to the namespace segment of namespaceArn. |
namespaceArn |
String | The ARN of the Amazon Redshift namespace that hosts this object: arn:{partition}:redshift:{region}:{account}:namespace:{guid} for a provisioned cluster, arn:{partition}:redshift-serverless:{region}:{account}:namespace/{guid} for a serverless namespace. Immutable for the lifetime of the namespace. |
|
amazon.redshift::RedshiftDatabase |
encoding |
String | The character encoding of the database. |
Schema assets
The following table shows the fields of an asset of type amazon.redshift::Schema.
| Form | Field | Type | Description |
|---|---|---|---|
catalog::Resource |
name |
String | The resource's technical name. |
catalog::RelatedTo |
belongsTo |
String | Fully qualified identifier of the container asset this asset is a member of. |
amazon.redshift::RedshiftResource |
namespaceId |
String | The GUID of the Amazon Redshift namespace that hosts this object, equal to the namespace segment of namespaceArn. |
namespaceArn |
String | The ARN of the Amazon Redshift namespace that hosts this object: arn:{partition}:redshift:{region}:{account}:namespace:{guid} for a provisioned cluster, arn:{partition}:redshift-serverless:{region}:{account}:namespace/{guid} for a serverless namespace. Immutable for the lifetime of the namespace. |
|
databaseName |
String | The name of the Amazon Redshift database that contains this object. Absent on database objects. | |
amazon.redshift::RedshiftSchema |
schemaType |
String |
Whether the schema's objects are stored by Amazon Redshift, resolved from an external metastore, or consumed from a datashare. Valid values:
|
Relation assets
The following table shows the fields of an asset of type amazon.redshift::Relation. For the columns, see Columns of a relation.
| Form | Field | Type | Description |
|---|---|---|---|
catalog::Resource |
name |
String | The resource's technical name. |
catalog::RelatedTo |
belongsTo |
String | Fully qualified identifier of the container asset this asset is a member of. |
amazon.redshift::RedshiftResource |
namespaceId |
String | The GUID of the Amazon Redshift namespace that hosts this object, equal to the namespace segment of namespaceArn. |
namespaceArn |
String | The ARN of the Amazon Redshift namespace that hosts this object: arn:{partition}:redshift:{region}:{account}:namespace:{guid} for a provisioned cluster, arn:{partition}:redshift-serverless:{region}:{account}:namespace/{guid} for a serverless namespace. Immutable for the lifetime of the namespace. |
|
databaseName |
String | The name of the Amazon Redshift database that contains this object. Absent on database objects. | |
schemaName |
String | The name of the Amazon Redshift schema that contains this object. Absent on database and schema objects. | |
owner |
String | The name of the database user that owns this object. | |
ownerId |
Integer | The internal identifier (usesysid) of the database user that owns this object. |
|
amazon.redshift::RedshiftRelation |
relationType |
String |
The kind of relation: a table, a view, a late-binding view, or a materialized view. Valid values:
|
columnCount |
Integer | The number of columns in the relation. | |
databaseOid |
Integer | The catalog OID of the Amazon Redshift database that contains this relation. | |
schemaOid |
Integer | The catalog OID of the Amazon Redshift schema that contains this relation. | |
distributionStyle |
String |
The style by which the relation's stored rows are distributed across compute slices. Absent on a relation with no backing storage, such as a view. Valid values:
|
|
sortKeys |
Array of strings | The names of the columns comprising the relation's sort key, in sort-key order. Absent on a relation with no backing storage, such as a view. | |
sortKeyStyle |
String |
How the sort key is organized. Absent on a relation with no sort key or no backing storage. Valid values:
|
Columns of a relation
The columns of a table or a view are the items of the columns iterable form of its amazon.redshift::Relation asset. The name of the column is the identifier of the item. The following table shows the fields of each item.
| Form | Field | Type | Description |
|---|---|---|---|
amazon.redshift::RedshiftColumn |
ordinal |
Integer | The one-based position of the column in the relation. |
dataType |
String | The declared data type of the column, such as integer or character varying(256). |