當前HIVE 不支持 not in 中包含查詢子句的語法,形如如下的HQ語句是不被支持的:?
查詢在key字段在a表中,但不在b表中的數據
select a.key from a where key not in(select key from b) ?該語句在hive中不支持
可以通過left outer join進行查詢,(假設B表中包含另外的一個字段 key1?
select a.key from a left outer join b on a.key=b.key where b.key1 is null