1 回答
- 最新
- 投票最多
- 评论最多
1
I was able to get a crawler to crawl the data and write a quick query in Athena to be able to accomplish your use case effectively. Please take a look and try it out. If you have any questions, please let me know.
Step 1: I mocked up data for 10 different dates and moved the data in S3 Step 2: I created a crawler to crawl the S3 location and ran the crawler. It created a table with 2 columns referer and data. Step 3: I ran the athena query below to get the dates > 9/4/2022
SELECT referer, data.datum2, data.ts, data.datum1, date_format(from_unixtime(data.ts),'%Y-%m-%d') FROM "raw_db"."nested_json"
where date_format(from_unixtime(data.ts),'%Y-%m-%d') > '2022-09-04'
limit 10;
已回答 2 年前
相关内容
- AWS 官方已更新 2 年前