You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yash Datta (JIRA)" <ji...@apache.org> on 2014/12/05 10:03:12 UTC
[jira] [Commented] (SPARK-4762) Add support for tuples in 'where
in' clause query
[ https://issues.apache.org/jira/browse/SPARK-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14235280#comment-14235280 ]
Yash Datta commented on SPARK-4762:
-----------------------------------
Already created a PR for the hive parser
> Add support for tuples in 'where in' clause query
> -------------------------------------------------
>
> Key: SPARK-4762
> URL: https://issues.apache.org/jira/browse/SPARK-4762
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 1.1.0
> Reporter: Yash Datta
> Fix For: 1.3.0
>
>
> 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);
> Need to add support for queries like :
> Select * from table where (c1,c2,... cn) in ((value1,value2...value n), (value1' , value2' ... ,value n').... )
> Also, we can add 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org