错误原因 hive报错:Both left and right aliases encountered in JOIN 两个表join的时候,不支持两个表的字段的 非相等 操作。 hive不能把不相同的条件放到 join的on里面 例如: on t1.a != t2.b and t1.a= t2.c 解决方法 1.将不相同的条件放到where中 on t1.a= t2.c where t1.a != t2.b 2.将不相同的条件放到select中 select ... if(t1.a>t2.b,0,1) as is_refund ... from