通信人家园
标题:
HADOOP建表语句
[查看完整版帖子]
[打印本页]
时间:
2015-2-2 11:08
作者:
8790559
标题:
HADOOP建表语句
字段的分隔符以:TAB分割.
例如:
create table zb_dwa.DWA_V_D_XXX_XXX
(
month_id string,
prov_id string,
cust_id string,
cert_type string,
cert_type_is_null string,
cert_type_is_valid string,
cert_no_is_null string,
cert_no_is_valid string,
is_18_cert_no_valid string,
is_15_cert_no_valid string,
cert_addr_is_null string,
cert_addr_is_valid DOUBLE,
insert_date TIMESTAMP
) PARTITIONED BY
row format delimited fields terminated by '\t' stored as textfile;
注意:见表制定的分区字段,不能再上述的建表语句中体现。
通信人家园 (https://www.txrjy.com/)
Powered by C114