How can I use In clause in Hive I want to write something like this in Hive select x from y where y.z in (select distinct z from y) order by x; But I am not finding any way o
I'm using hive version 0.7.1
and SELECT * FROM MYTABLE WHERE MYCOLUMN IN ('thisThing','thatThing');
I tested this on a column type STRING
so I am not sure if this works universally on all data types since I noticed like Wawrzyniec mentioned above that the Hive Language Manual says that it is not supported and to instead use LEFT SEMI JOIN
but it worked fine in my test.