Hive入门,
一、Hive的数据类型
复杂数据类型
-
时间类型
二、Hive的数据模型
分区表
create table partition_table
(id int,name string)
partitioned by (gender string)
row format delimited fields terminated by ',';
-
外部表(External Table)
create external table external_student
(id int, name string, age int)
location '/input/student';
-
桶表(Bucket Table)
create table bucket_table
(id int,name string,age int)
clustered by (name) into 5 buckets;
-
视图(View)
create view view_test
as
select p.phone,g.gender
from yxyx_user p,partition_table g
where p.user_id = g.id;
http://www.htsjk.com/hive/41141.html
www.htsjk.Com
true
http://www.htsjk.com/hive/41141.html
NewsArticle
Hive入门, 一、Hive的数据类型 复杂数据类型 时间类型 二、Hive的数据模型 分区表 创建分区表: create table partition_table(id int,name string) partitioned by (gender string) row format delimited fields termi...
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。