Created
November 13, 2019 21:19
-
-
Save uc-compass-bot/0003a43f37cd04c8930b472dd2f7eb8b to your computer and use it in GitHub Desktop.
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 | |
cloudfront_logs.staging_partitioned ( | |
date DATE, | |
time STRING, | |
edge_location STRING, | |
response_bytes BIGINT, | |
ip STRING, | |
method STRING, | |
host STRING, | |
uri STRING, | |
status INT, | |
referrer STRING, | |
user_agent STRING, | |
query_string STRING, | |
cookies STRING, | |
edge_result_type STRING, | |
edge_request_id STRING, | |
host_header STRING, | |
protocol STRING, | |
request_bytes BIGINT, | |
time_taken FLOAT, | |
x_forwarded_for STRING, | |
ssl_protocol STRING, | |
ssl_cipher STRING, | |
response_result_type STRING, | |
http_version STRING, | |
fle_status STRING, | |
fle_encrypted_fields INT | |
) | |
PARTITIONED BY ( | |
year string, | |
month string, | |
day string | |
) | |
ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' | |
LOCATION 's3://staging-bucket-name/partitioned/' | |
TBLPROPERTIES ( 'skip.header.line.count'='2'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment