@@ -179,6 +179,11 @@ export class Table extends Resource implements ITable {
179
179
*/
180
180
public readonly database : IDatabase ;
181
181
182
+ /**
183
+ * Indicates whether the table's data is compressed or not.
184
+ */
185
+ public readonly compressed : boolean ;
186
+
182
187
/**
183
188
* The type of encryption enabled for the table.
184
189
*/
@@ -235,6 +240,7 @@ export class Table extends Resource implements ITable {
235
240
this . columns = props . columns ;
236
241
this . partitionKeys = props . partitionKeys ;
237
242
243
+ this . compressed = props . compressed === undefined ? false : props . compressed ;
238
244
const { bucket, encryption, encryptionKey} = createBucket ( this , props ) ;
239
245
this . bucket = bucket ;
240
246
this . encryption = encryption ;
@@ -256,7 +262,7 @@ export class Table extends Resource implements ITable {
256
262
} ,
257
263
storageDescriptor : {
258
264
location : `s3://${ this . bucket . bucketName } /${ this . s3Prefix } ` ,
259
- compressed : props . compressed === undefined ? false : props . compressed ,
265
+ compressed : this . compressed ,
260
266
storedAsSubDirectories : props . storedAsSubDirectories === undefined ? false : props . storedAsSubDirectories ,
261
267
columns : renderColumns ( props . columns ) ,
262
268
inputFormat : props . dataFormat . inputFormat . className ,
@@ -271,7 +277,11 @@ export class Table extends Resource implements ITable {
271
277
} ) ;
272
278
273
279
this . tableName = tableResource . tableName ;
274
- this . tableArn = `${ this . database . databaseArn } /${ this . tableName } ` ;
280
+ this . tableArn = this . node . stack . formatArn ( {
281
+ service : 'glue' ,
282
+ resource : 'table' ,
283
+ resourceName : `${ this . database . databaseName } /${ this . tableName } `
284
+ } ) ;
275
285
}
276
286
277
287
/**
0 commit comments