You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Peter Chu <pe...@outlook.com> on 2013/05/06 05:20:48 UTC

Hive QL - NOT IN, NOT EXIST

Hi, I am trying to write a hive query to find the equivalent of NOT IN / NOT EXIST in SQL.
However, Hive does not support this.  It does have Left Semi Join which serves as IN but NOT does not support.
I am wondering if there is any way to do this without resorting to using left outer join and finding nulls.
Example Query in SQL:
SELECT uuid from feed f WHERE f.uuid NOT IN (SELECT uuid FROM message);