设为首页 加入收藏

TOP

hive 关于array的常用操作。[排序][包含]
2018-12-02 17:27:36 】 浏览:594
Tags:hive 关于 array 常用 操作 排序 包含
select count(*) from xxxxxxxx
> lateral view explode(pair) ids_table1 as id1 lateral view explode(pair) ids_table2 as id2

> where year=2016 and month =2 and day =23 and id2.type=68 and id1.type=68 and sort_array(dates)[0]='20160223' limit 3;





select count(*) from xx
lateral view explode(pair) ids_table1 as id1 lateral view explode(pair) ids_table2 as id2
where year='2016' and month='02' and day='23' and id2.type=68 and id1.type=64 and array_contains(dates,'20160223');



】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇hive 常用运算 下一篇hive 查看某表字段类型

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目