欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

hive建表

程序员文章站 2022-07-14 15:33:57
...
create table person
(
id int,
name string,
hobbies array<string>,
address map<string,string>
)
partitioned by (spark_load_date STRING)        		分区字段
row format delimited
fields terminated by ','                     		字段之间分隔符
collection items terminated by '-'                  数组之间分隔符
map keys terminated by ':'                          map之间分隔符
STORED AS textfile;									建表类型