interface IcebergSchemaProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.S3Tables.Alpha.IcebergSchemaProperty |
![]() | software.amazon.awscdk.services.s3tables.alpha.IcebergSchemaProperty |
![]() | aws_cdk.aws_s3tables_alpha.IcebergSchemaProperty |
![]() | @aws-cdk/aws-s3tables-alpha » IcebergSchemaProperty |
Contains details about the schema for an Iceberg table.
Example
// Build a table
const sampleTable = new Table(scope, 'ExampleTable', {
tableName: 'example_table',
namespace: namespace,
openTableFormat: OpenTableFormat.ICEBERG,
withoutMetadata: true,
});
// Build a table with an Iceberg Schema
const sampleTableWithSchema = new Table(scope, 'ExampleSchemaTable', {
tableName: 'example_table_with_schema',
namespace: namespace,
openTableFormat: OpenTableFormat.ICEBERG,
icebergMetadata: {
icebergSchema: {
schemaFieldList: [
{
name: 'id',
type: 'int',
required: true,
},
{
name: 'name',
type: 'string',
},
],
},
},
compaction: {
status: Status.ENABLED,
targetFileSizeMb: 128,
},
snapshotManagement: {
status: Status.ENABLED,
maxSnapshotAgeHours: 48,
minSnapshotsToKeep: 5,
},
});
Properties
Name | Type | Description |
---|---|---|
schema | Schema [] | Contains details about the schema for an Iceberg table. |
schemaFieldList
Type:
Schema
[]
Contains details about the schema for an Iceberg table.