Amazon Kinesis Data Streams system tables schema and example queries
This page describes the columns of the Amazon Kinesis Data Streams system table and provides example queries.
Table schemas
streams
Full name: "s3tablescatalog/aws-catalog"."kinesis"."streams". Partitioned
by bucket(32, id).
The streams system table contains one row for each stream in your
account and Region.
The following table describes the columns of the streams table.
| 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 the 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 encryption type used by the stream. Values: NONE, KMS. |
|
|
Yes |
The maximum size of a single record in kibibytes (KiB) that can be written to and read from the stream. |
|
|
No |
The record distribution strategy used by the stream. A value of |
|
|
Yes |
The current retention period of the stream, in hours. |
|
|
Yes |
The capacity mode of the stream. Values: ON_DEMAND, PROVISIONED. |
|
|
Yes |
The current status of the stream. Values: CREATING, ACTIVE, UPDATING, DELETING. |
|
|
No |
The identifier of the AWS KMS key that encrypts the resource at rest, as the source service reports it: a key ID, key ARN, alias name or alias ARN. |
Example queries
Streams by capacity mode and encryption
SELECT stream_mode_enum, encryption_type_enum, count(*) AS streams FROM "s3tablescatalog/aws-catalog"."kinesis"."streams" GROUP BY 1, 2;
Streams with the longest retention
SELECT resource_name, stream_mode_enum, retention_period_hours FROM "s3tablescatalog/aws-catalog"."kinesis"."streams" ORDER BY retention_period_hours DESC LIMIT 20;