Skip to content

Instantly share code, notes, and snippets.

@kamipatel
Last active May 12, 2022 20:47
Show Gist options
  • Save kamipatel/03f121f51365b858bd39c3651bfd299d to your computer and use it in GitHub Desktop.
Save kamipatel/03f121f51365b858bd39c3651bfd299d to your computer and use it in GitHub Desktop.
ebikesorder-athena-ddl
CREATE EXTERNAL TABLE `ebikesorder`(
`id` string,
`orderdatetime` string,
`account` string,
`amount` decimal(10,2),
`model` string,
`quantity` decimal(10,0),
`status` string)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ','
STORED AS INPUTFORMAT
'org.apache.hadoop.mapred.TextInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
's3://ebikes-data-1/data/'
TBLPROPERTIES ("skip.header.line.count"="1")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment