Created
April 14, 2020 08:56
-
-
Save ankit-crossml/19ccf7d84b3de644756494c1b1133011 to your computer and use it in GitHub Desktop.
Medium Blog - Athena S3 - create table with partitions gist
This file contains 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 athena_example ( | |
request_timestamp string, | |
request_ip string, | |
request_port int, | |
backend_ip string, | |
backend_port int, | |
request_processing_time double, | |
protocol string, | |
user_agent string, | |
ssl_protocol string ) | |
PARTITIONED BY(year string, month string) | |
LOCATION 's3://athena-examples/elb/raw/'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment