假设我想通过它们的值从同一字段中选择一个数据子集。现在我必须做这样的事情
TestLocationsResults = FILTER SalesData by (StoreId =='17'
or StoreId =='85'
or StoreId =='12'
or StoreId =='45'
or StoreId =='26'
or StoreId =='75'
or StoreId =='13'
)
在 SQL 中,我们可以简单地这样做:
SELECT * FROM SalesData where StoreID IN (17, 12, 85, 45, 26, 75, 13)
Pig中是否有我缺少的类似快捷方式?