Apache Pig中WHERE IN()SQL的等价物

时间:2013-02-10 08:09:27

标签: hadoop apache-pig

我想知道Apache pig中是否有where in (select col1 from tbl where col = col2)的等价物。换句话说,我怎样才能知道关系A是关系B的子集还是关系A和B之间的共同元组。

1 个答案:

答案 0 :(得分:1)

我认为你想要的东西等同于内部联接。 http://pig.apache.org/docs/r0.7.0/piglatin_ref2.html#JOIN+%28inner%29 我会参考连接的糖语法。例如,在oracle中,你可以在那里放置一组常量以及一个子查询。