hive建表语句

create table dwd.tmp_table (
    ti tinyint,
    sl smallint,
    i  int,
    bi bigint,
    bl boolean,
    fl float,
    db double,
    st string,
    ts timestamp,
    ba binary comment '字节数组',
    ar array<string>,
    mp map<string, float>,
    su struct<f1:string, f2:float, f3:string, f4:int>)
comment '表名称'
partitioned by (dt string)
--分隔符
row format delimited
fields terminated by '\001'
collection items terminated by '\002'
map keys terminated by '\003'
lines terminated by '\n'
--输入输出
stored as parquet
--位置
location "hdfs://localhost:8020/Users/duhongliu/hadoopinstall/hive-2.3.8/warehouse/dwd.db/tmp_table"
--表额外信息
tblproperties ('creator'='DUDU')

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值