Slide 29
Slide 29 text
パーティションについて
パーティションの設定をAthenaでのcreate table時のオプションで設定
29
PARTITIONED BY (
‘datehour’ string)
TBLPROPERTIES (
‘projection.enabled’ = ‘true’,
‘projection.datehour.type’ = ‘date’,
‘projection.datehour.format’ = ‘yyyy-MM-dd-HH’
‘projection.datehour.interval.unit’ = ‘HOURS’,
‘projection.datehour.interval.unit’ = ‘1’,
‘projection.datehour.range’ = ‘2023-01-01-00, NOW’,
‘storage.location.template’ = ‘s3:///access/datehur=${datehour}’
)