C114门户论坛百科APPEN| 举报 切换到宽版

亚星游戏官网

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索
查看: 3500|回复: 0

HADOOP建表语句 [复制链接]

军衔等级:

亚星游戏官网-yaxin222  新兵

注册:2009-8-14
发表于 2015-2-2 11:08:01 |显示全部楼层
字段的分隔符以: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;
注意:见表制定的分区字段,不能再上述的建表语句中体现。

举报本楼

您需要登录后才可以回帖 登录 | 注册 |

手机版|C114 ( 沪ICP备12002291号-1 )|联系大家 |网站地图  

GMT+8, 2024-9-28 21:23 , Processed in 0.093305 second(s), 15 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部
XML 地图 | Sitemap 地图