Created
July 30, 2018 12:03
-
-
Save buzzsurfr/fabd354738b35a89af0516122c647e42 to your computer and use it in GitHub Desktop.
Amazon Athena DDL for SNS Delivery Status Logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE EXTERNAL TABLE IF NOT EXISTS sns_delivery_status_logs ( | |
status string, | |
notification struct< | |
timestamp:string, | |
messageId:string>, | |
delivery struct< | |
statusCode:int, | |
dwellTimeMs:int, | |
token:string, | |
attempts:int, | |
providerResponse;string, | |
destination:string> | |
) | |
ROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe' | |
LOCATION 's3://your_log_bucket/prefix/'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment