Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/66909e91c7f6aa5184e8af9b03a0980a to your computer and use it in GitHub Desktop.
Save velotiotech/66909e91c7f6aa5184e8af9b03a0980a to your computer and use it in GitHub Desktop.
create bill_details queryy
CREATE EXTERNAL TABLE `bil_details`(
`id` int COMMENT '',
`amount_paid` string COMMENT '',
`amount_due` string COMMENT '')
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ','
STORED AS INPUTFORMAT
'org.apache.hadoop.mapred.TextInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
's3://athena-blog/bill-details'
TBLPROPERTIES (
'has_encrypted_data'='false',
'skip.header.line.count'='1')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment