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 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 일 년 전