- Newest
- Most votes
- Most comments
Hello, you can create the table with the hive style partitions for the data coming from Amazon Kinesis Data Firehose. Please use a similar query like below in your Create Table query to create the table for the hive style partitioned source data:
TBLPROPERTIES (
'projection.enabled' = 'true',
'projection.region.type' = 'enum',
'projection.region.values' = 'east,west,north,south',
'projection.datehour.format'= '\'year=\'yyyy/\'month=\'MM/\'day=\'dd/\'hour=\'HH'
,
'projection.datehour.interval'='1',
'projection.datehour.interval.unit'='HOURS',
'projection.datehour.range'='2021/01/01/00,NOW',
'projection.datehour.type'='date',
'storage.location.template'='s3://bucket_name/logs/region={region}/${datehour}/'
)
Once the table is created successfully, try to query the data inside the table using a simple SELECT query to confirm whether you can retrieve the data from the table or not.
If you encounter any issues while creating the table, I would request you to raise a support case with the AWS Premium Support Team for more specific troubleshooting.
Relevant content
- Accepted Answerasked a month ago
- asked 9 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago
'projection.datehour.range'='year=2023/month=08/day=01/hour=00,NOW',
I believe the datehour range needs to be like this?
I couldn't get it to work like:
'projection.datehour.range'='2021/01/01/00,NOW',