hive で論理差

hive は where exists をサポートしていない。で、where not exists もサポートしてない。(if not exists はサポート)
で、論理差(集合Aと集合Bがあるとき、AのメンバでかつBのメンバでないものを抽出)をどう実現するか?
以下でできた。

select aid from (
select a.id as aid, b.id as bid from a
left outer join b on (a.id = b.id)
) abjoin
where abjoin.bid is NULL

ちなみに、is NULL はサポートです。