Skip to content

Instantly share code, notes, and snippets.

@bradhe
Created April 20, 2014 21:43
Show Gist options
  • Save bradhe/11126024 to your computer and use it in GitHub Desktop.
Save bradhe/11126024 to your computer and use it in GitHub Desktop.
CREATE EXTERNAL TABLE raw_facts (
dimension1 STRING,
dimension2 STRING,
dimension3 STRING,
dimension4 STRING,
timestamp1 TIMESTAMP,
timestamp2 TIMESTAMP,
measure1 DECIMAL,
measure2 DECIMAL,
measure3 DECIMAL
) ROW FORMAT
DELIMITED FIELDS TERMINATED BY ','
ESCAPED BY '\\'
STORED AS TEXTFILE
LOCATION 's3n://my-bucket/my-prefix/';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment