

 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 ](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/) that was published on June 30, 2025. 

# 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](https://docs.aws.amazon.com/glue/latest/dg/aws-service-assets.html) 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](https://docs.aws.amazon.com/glue/latest/webapi/API_GetAsset.html) in the *AWS Glue Web API Reference*.

A field that doesn't apply to an object is absent from its asset.

## Asset types
<a name="metadata-discovery-assets-types"></a>

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
<a name="metadata-discovery-assets-namespace"></a>

The following table shows the fields of an asset of type `amazon.redshift::Namespace`.



- **`catalog::Resource`**
  - **Field:** name
  - **Type:** String
  - **Description:** The resource's technical name. For this asset type, the name is the namespace identifier.

- **`amazon.redshift::RedshiftResource`**
  - **Field:** namespaceId / **Type:** String / **Description:** The GUID of the Amazon Redshift namespace that hosts this object, equal to the namespace segment of namespaceArn.
  - **Field:** namespaceArn / **Type:** String / **Description:** 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
<a name="metadata-discovery-assets-database"></a>

The following table shows the fields of an asset of type `amazon.redshift::Database`.



- **`catalog::Resource`**
  - **Field:** name
  - **Type:** String
  - **Description:** The resource's technical name.

- **`catalog::Database`**
  - **Field:** databaseType
  - **Type:** String
  - **Description:** The coarse, source-agnostic database classification.<br />Valid values:+  `Managed` 

- **`catalog::RelatedTo`**
  - **Field:** belongsTo
  - **Type:** String
  - **Description:** Fully qualified identifier of the container asset this asset is a member of.

- **`amazon.redshift::RedshiftResource`**
  - **Field:** namespaceId / **Type:** String / **Description:** The GUID of the Amazon Redshift namespace that hosts this object, equal to the namespace segment of namespaceArn.
  - **Field:** namespaceArn / **Type:** String / **Description:** 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`**
  - **Field:** encoding
  - **Type:** String
  - **Description:** The character encoding of the database.



## Schema assets
<a name="metadata-discovery-assets-schema"></a>

The following table shows the fields of an asset of type `amazon.redshift::Schema`.



- **`catalog::Resource`**
  - **Field:** name
  - **Type:** String
  - **Description:** The resource's technical name.

- **`catalog::RelatedTo`**
  - **Field:** belongsTo
  - **Type:** String
  - **Description:** Fully qualified identifier of the container asset this asset is a member of.

- **`amazon.redshift::RedshiftResource`**
  - **Field:** namespaceId / **Type:** String / **Description:** The GUID of the Amazon Redshift namespace that hosts this object, equal to the namespace segment of namespaceArn.
  - **Field:** namespaceArn / **Type:** String / **Description:** 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.
  - **Field:** databaseName / **Type:** String / **Description:** The name of the Amazon Redshift database that contains this object. Absent on database objects.

- **`amazon.redshift::RedshiftSchema`**
  - **Field:** schemaType
  - **Type:** String
  - **Description:** Whether the schema's objects are stored by Amazon Redshift, resolved from an external metastore, or consumed from a datashare.<br />Valid values:+  `Local` – The schema's objects are stored by Amazon Redshift. 



## Relation assets
<a name="metadata-discovery-assets-relation"></a>

The following table shows the fields of an asset of type `amazon.redshift::Relation`. For the columns, see [Columns of a relation](#metadata-discovery-assets-columns).



- **`catalog::Resource`**
  - **Field:** name
  - **Type:** String
  - **Description:** The resource's technical name.

- **`catalog::RelatedTo`**
  - **Field:** belongsTo
  - **Type:** String
  - **Description:** Fully qualified identifier of the container asset this asset is a member of.

- **`amazon.redshift::RedshiftResource`**
  - **Field:** namespaceId / **Type:** String / **Description:** The GUID of the Amazon Redshift namespace that hosts this object, equal to the namespace segment of namespaceArn.
  - **Field:** namespaceArn / **Type:** String / **Description:** 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.
  - **Field:** databaseName / **Type:** String / **Description:** The name of the Amazon Redshift database that contains this object. Absent on database objects.
  - **Field:** schemaName / **Type:** String / **Description:** The name of the Amazon Redshift schema that contains this object. Absent on database and schema objects.
  - **Field:** owner / **Type:** String / **Description:** The name of the database user that owns this object.
  - **Field:** ownerId / **Type:** Integer / **Description:** The internal identifier (usesysid) of the database user that owns this object.

- **`amazon.redshift::RedshiftRelation`**
  - **Field:** relationType / **Type:** String / **Description:** The kind of relation: a table, a view, a late-binding view, or a materialized view.<br />Valid values:+  `Table` – The relation is a table. <br />+  `View` – The relation is an ordinary view. <br />+  `LateBindingView` – The relation is a late-binding view, whose column shape is resolved after the view is created. <br />+  `MaterializedView` – The relation is a materialized view. 
  - **Field:** columnCount / **Type:** Integer / **Description:** The number of columns in the relation.
  - **Field:** databaseOid / **Type:** Integer / **Description:** The catalog OID of the Amazon Redshift database that contains this relation.
  - **Field:** schemaOid / **Type:** Integer / **Description:** The catalog OID of the Amazon Redshift schema that contains this relation.
  - **Field:** distributionStyle / **Type:** String / **Description:** 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.<br />Valid values:+  `Even` – Rows are distributed evenly across the compute slices. <br />+  `Key` – Rows are distributed by the hash of a declared distribution key. <br />+  `All` – A full copy of the relation is stored on every compute node. <br />+  `Auto` – Amazon Redshift manages the distribution style automatically and has not yet chosen one. <br />+  `None` – Rows are not distributed across compute slices. <br />+  `AutoAll` – Amazon Redshift manages the distribution style automatically and has chosen to store a full copy of the relation on every compute node. <br />+  `AutoEven` – Amazon Redshift manages the distribution style automatically and has chosen to distribute rows evenly across the compute slices. <br />+  `AutoKey` – Amazon Redshift manages the distribution style automatically and has chosen to distribute rows by the hash of a distribution key. 
  - **Field:** sortKeys / **Type:** Array of strings / **Description:** 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.
  - **Field:** sortKeyStyle / **Type:** String / **Description:** How the sort key is organized. Absent on a relation with no sort key or no backing storage.<br />Valid values:+  `Auto` – Amazon Redshift manages the sort key automatically. <br />+  `Compound` – The sort key is compound: rows are sorted by the key columns in the order the key declares them. <br />+  `Interleaved` – The sort key is interleaved: each key column carries equal weight. 



## Columns of a relation
<a name="metadata-discovery-assets-columns"></a>

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.



- **`amazon.redshift::RedshiftColumn`**
  - **Field:** ordinal / **Type:** Integer / **Description:** The one-based position of the column in the relation.
  - **Field:** dataType / **Type:** String / **Description:** The declared data type of the column, such as integer or character varying(256).

