hive 中union
来源:互联网 发布:软件开发工程师培训班 编辑:程序博客网 时间:2024/06/06 06:33
今天需要对数据进行集合,在hive中发现不能使用union ,只能使用union all
create table hive_test_01(a string,b double);
create table hive_test_02(a string,b double);
insert overwrite table hive_test_01 select 'abc',1 from hive_test limit 1;
insert overwrite table hive_test_02 select 'efg',2 from hive_test limit 1;
hive 在union中不能使用上层的select,只能使用嵌套子查询
select a.a,a.b from
(select m.a,m.b from hive_test_01 m
union all
select n.a,n.b from hive_test_02 n
) a;
执行结果为:
efg 2.0
abc 1.0
union 出现错误。
0 0
- hive 中union
- Hive中union使用详情
- hive union
- HIVE UNION
- hive union
- hive中合理使用union all与multi insert
- #hive#hive中的union all
- hive 中 union all ---Top level UNION is not supported currently 错误
- hive union 的问题
- hive union (all)
- hive的union问题
- hive (union & subquery)
- hive union all 使用
- hive union all 使用
- hive union 的问题
- [Hive]Union使用指南
- Hive union all报错
- hive中数据去重,union,交集和并集等操作语句总结
- Apache Httpd常用命令
- 九度OnlineJudge题目1183:守形数
- 关于cin无法把回车送到输入流的问题
- LeetCode-Sort List
- Android ImageView 的图片自适应
- hive 中union
- 移动补贴数字惊人
- MAC eclipse SVN 安装路径
- haproxy 安装
- ios 开发 flurry 资料
- MySQL之alter语句用法总结
- Ubuntu下查看CPU温度风扇转速和硬盘温度
- SharePoint2013使用ReportViewer控件(原)
- Android Robotium的几个小tips