IntegerPartitionProjectionConfigurationProps Struct
Properties for INTEGER partition projection configuration.
Example
ts
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
digitsoptionalnumberdigitsoptionalint | floatdigitsoptionalNumberDigitsoptionaldoubleDigitsoptional*float64#Number of digits to pad the partition value with leading zeros.
Default: no static number of digits and no leading zeroes
With digits: 4, partition values: 0001, 0002, ..., 0100
intervaloptionalnumberintervaloptionalint | floatintervaloptionalNumberIntervaloptionaldoubleIntervaloptional*float64= 1#Interval between partition values.
Maximum value for the integer partition range (inclusive).
Minimum value for the integer partition range (inclusive).