一、 Join语法
Hive支持的join语法:
join_table:
table_reference [INNER] JOIN table_factor [join_condition]
| table_reference {
LEFT|RIGHT|FULL} [OUTER] JOIN table_reference join_condition
| table_reference LEFT SEMI JOIN table_reference join_condition
| table_reference CROSS JOIN table_reference [join_condition] (as of Hive 0.10)
table_reference:
table_factor
| join_table
table_factor:
tbl_name [alias]
| table_subquery alias
| ( table_references )
join_condition:
ON expression
在Hive2.2.0以前,hive仅支持等值连接,即expression1 = expre