interface IntegerPartitionProjectionConfigurationProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Glue.Alpha.IntegerPartitionProjectionConfigurationProps |
Go | github.com/aws/aws-cdk-go/awscdkgluealpha/v2#IntegerPartitionProjectionConfigurationProps |
Java | software.amazon.awscdk.services.glue.alpha.IntegerPartitionProjectionConfigurationProps |
Python | aws_cdk.aws_glue_alpha.IntegerPartitionProjectionConfigurationProps |
TypeScript (source) | @aws-cdk/aws-glue-alpha ยป IntegerPartitionProjectionConfigurationProps |
Properties for INTEGER partition projection configuration.
Example
declare const myDatabase: glue.Database;
new glue.S3Table(this, 'MyTable', {
database: myDatabase,
columns: [{
name: 'data',
type: glue.Schema.STRING,
}],
partitionKeys: [{
name: 'year',
type: glue.Schema.INTEGER,
}],
dataFormat: glue.DataFormat.JSON,
partitionProjection: {
year: glue.PartitionProjectionConfiguration.integer({
min: 2020,
max: 2023,
interval: 1, // optional, defaults to 1
digits: 4, // optional, pads with leading zeros
}),
},
});
Properties
| Name | Type | Description |
|---|---|---|
| max | number | Maximum value for the integer partition range (inclusive). |
| min | number | Minimum value for the integer partition range (inclusive). |
| digits? | number | Number of digits to pad the partition value with leading zeros. |
| interval? | number | Interval between partition values. |
max
Type:
number
Maximum value for the integer partition range (inclusive).
min
Type:
number
Minimum value for the integer partition range (inclusive).
digits?
Type:
number
(optional, default: no static number of digits and no leading zeroes)
Number of digits to pad the partition value with leading zeros.
With digits: 4, partition values: 0001, 0002, ..., 0100
interval?
Type:
number
(optional, default: 1)
Interval between partition values.

.NET
Go
Java
Python
TypeScript (