I have a theta join in SAS which need to be translate into Hive.
SAS:
select a.id,b.name from employee a
left outer join company b
on ( a.id=b.id and a.joindate>=b.joindate and a.releasedate < b.releasedate)
Since this is not inner join, I am not getting proper results if I add non equi-join in the where condition (all non matched records from left table are missing).
Tried below in Hive:
select a.id,b.name from employee a
left outer join company b
on ( a.id=b.id)
where a.joindate>=b.joindate and a.releasedate < b.releasedate
Any suggestions?