如何EXCEPT在Hive QL中执行子句(如SQL)
我有2个表,每个表都是一列唯一的ID.
我想找到仅在表1中但不在表2中的ID列表
表格1
apple
orange
pear
Run Code Online (Sandbox Code Playgroud)
表2
apple
orange
Run Code Online (Sandbox Code Playgroud)
在SQL中你可以做一个EXCEPT子句(http://en.wikipedia.org/wiki/Set_operations_%28SQL%29),但你不能在Hive QL中做到这一点
hive ×1