I'm running a hive left outer join query which involves AND and OR in ON clause. Hive doesn't support OR in ON clause. How do I rewrite this to run in Hive? If UNION is one of the answer, please note that the version of hive I'm using doesn't support UNION. Supports UNION ALL only.
select
*
from
a
left outer join b on a.a1=b.b1
left outer join c on c.c10=a.15 and (c.12=a.25 or c.13=a.25)
left outer join d on d.d1=a.a5
where
?
(c.12=a.25 or c.13=a.25)to where clause? - Vladimir Semashkin