1 個回答
- 最新
- 最多得票
- 最多評論
0
Hello there Jess, It is possible to do this using the AWS Glue construct:
https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-glue-alpha.Table.html
A quick example would be:
declare const myDatabase: glue.Database; new glue.Table(this, 'MyTable', { database: myDatabase, tableName: 'my_table', columns: [{ name: 'col1', type: glue.Schema.STRING, }], partitionKeys: [{ name: 'year', type: glue.Schema.SMALL_INT, }, { name: 'month', type: glue.Schema.SMALL_INT, }], dataFormat: glue.DataFormat.JSON, enablePartitionFiltering: true, });
https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-glue-alpha.Table.html
相關內容
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 3 年前