![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hive
文章平均质量分 54
keeper&
这个作者很懒,什么都没留下…
展开
-
hive 中 unnest的使用
unnest 类似 hive中的侧视图 如数据: id infos 1 01,02,03 2 04,05,06 select id,info from test cross join unnest(split(info,',')) as info 输出如下 1 01 1 02 1 03 2 04 2 05 2 06原创 2020-09-02 17:22:41 · 3798 阅读 · 0 评论 -
hive分区表的创建和数据加载
create table ipbc( ip string )partitioned by(ds string) row format delimited fields terminated by '\t'; load data local inpath '/root/ztj/ipbc0705.txt' into table ipbc partition (ds='2020-07-05'); insert into table ipbc partition (ds='20200706') select原创 2020-07-14 17:05:28 · 222 阅读 · 0 评论 -
hive拉链表实战
–第一步: 数据库源表orders() create table orders( order_id int, createtime string, modifiedtime string, status string ) 20190821开始做拉链表 数据如下 ±--------------------------------±----------------------------------...原创 2020-01-11 15:25:10 · 389 阅读 · 0 评论