-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer_landing.sql
18 lines (18 loc) · 1.01 KB
/
customer_landing.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CREATE EXTERNAL TABLE `project`.`customer_landing`(
`customername` string COMMENT 'from deserializer',
`email` string COMMENT 'from deserializer',
`phone` string COMMENT 'from deserializer',
`birthday` string COMMENT 'from deserializer',
`serialnumber` string COMMENT 'from deserializer',
`registrationdate` bigint COMMENT 'from deserializer',
`lastupdatedate` bigint COMMENT 'from deserializer',
`sharewithresearchasofdate` bigint COMMENT 'from deserializer',
`sharewithpublicasofdate` bigint COMMENT 'from deserializer')
ROW FORMAT SERDE 'org.openx.data.jsonserde.JsonSerDe'
WITH SERDEPROPERTIES (
'paths'='birthDay,customerName,email,lastUpdateDate,phone,registrationDate,\
serialNumber,shareWithPublicAsOfDate,shareWithResearchAsOfDate')
STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat'
OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION 's3://neidhpa-lakehouse-project/customer_landing/'
TBLPROPERTIES ('classification'='json')