apache/spark — pull request #3618 by saucam (2014-12-05 09:07:54+00:00)
Title: SPARK-4762: Add support for tuples in 'where in' clause query

Currently, in the where in clause the filter is applied only on a single column. We can enhance it to accept filter on multiple columns.
So current support is for queries like :
Select * from table where c1 in (value1,value2,...value n);

This added support for queries like :
Select * from table where (c1,c2,... cn) in ((value1,value2...value n), (value1' , value2' ... ,value n').... )
Also, added optimized version of where in clause of tuples , where we create a hashset of the filter tuples for matching rows.

This also requires a change in the hive parser since currently there is no support for multiple columns in IN clause.