Hive 各种Join总计汇总
关于hive中的各种join,下边做个总结
先准备数据
1 |
|
建表:
1 |
|
导入数据:
1 |
|
实验:
inner join
select * from a inner join b on a.id=b.id;
left join
select * from a left join b on a.id=b.id;
right join
select * from a right join b on a.id=b.id;
outer join
select * from a full outer join b on a.id=b.id;
left semi join
select * from a left semi join b on a.id = b.id;
Hive 各种Join总计汇总
http://example.com/2018/11/06/2018-11-06-hive各种join/