interface IcebergSortOrder
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.S3Tables.Alpha.IcebergSortOrder |
Java | software.amazon.awscdk.services.s3tables.alpha.IcebergSortOrder |
Python | aws_cdk.aws_s3tables_alpha.IcebergSortOrder |
TypeScript (source) | @aws-cdk/aws-s3tables-alpha ยป IcebergSortOrder |
Sort order specification for Iceberg table.
Example
// Build a table with partition spec, sort order, and table properties
const advancedTable = new Table(scope, 'AdvancedTable', {
tableName: 'advanced_table',
namespace: namespace,
openTableFormat: OpenTableFormat.ICEBERG,
icebergMetadata: {
icebergSchema: {
schemaFieldList: [
{ id: 1, name: 'event_date', type: 'date', required: true },
{ id: 2, name: 'user_id', type: 'string', required: true },
],
},
icebergPartitionSpec: {
specId: 0,
fields: [
{
sourceId: 1,
transform: IcebergTransform.IDENTITY,
name: 'date_partition',
fieldId: 1000,
},
],
},
icebergSortOrder: {
orderId: 1,
fields: [
{
sourceId: 1,
transform: IcebergTransform.IDENTITY,
direction: SortDirection.ASC,
nullOrder: NullOrder.NULLS_LAST,
},
],
},
tableProperties: [
{ key: 'write.format.default', value: 'parquet' },
],
},
});
Properties
| Name | Type | Description |
|---|---|---|
| fields | Iceberg[] | The list of sort fields. |
| order | number | The unique identifier for the sort order. |
fields
Type:
Iceberg[]
The list of sort fields.
orderId?
Type:
number
(optional, default: 1)
The unique identifier for the sort order.

.NET
Java
Python
TypeScript (