create table EMP_STG(id int,first_name string,last_name string,email string,gender string, company string)
row format delimited
fields terminated by ','
lines terminated by '\n'
stored as textfile
TBLPROPERTIES("skip.header.line.count"="1");
create external table COMPANY_STG(company string,city string,state string,country string,
country_code string,location string, timezone string)
row format delimited
fields terminated by ','
lines terminated by '\n'
location '/hivebucketing/01/cmpstg'
TBLPROPERTIES("skip.header.line.count"="1");
Comments
Post a Comment