[ 
https://issues.apache.org/jira/browse/SPARK-8431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14592803#comment-14592803
 ] 

Yu Ishikawa commented on SPARK-8431:
------------------------------------

Hi [~shivaram] and [~davies], thank you for your comment.

In {{sql/core/src/main/scala/org/apache/spark/sql/Column.scala}}, I implemented 
the {{in}} operation like below. However I don't know What Java class the 
parameter {{Any*}} is.

https://github.com/apache/spark/pull/6824/files#diff-ac415c903887e49486ba542a65eec980R624
{noformat}
def in(list: Any*): Column = In(expr, list.map(lit(_).expr))
{noformat}

Umm, should we  add a wrapper method like below to call by SparkR?

{noformat}
def in(list: List[Any]): Column = in(list:_*)
{noformat}

> Add in operator to DataFrame Column in SparkR
> ---------------------------------------------
>
>                 Key: SPARK-8431
>                 URL: https://issues.apache.org/jira/browse/SPARK-8431
>             Project: Spark
>          Issue Type: New Feature
>          Components: SparkR, SQL
>            Reporter: Yu Ishikawa
>
> To filter values in a set, we should add {{%in%}} operation into SparkR.
> {noformat}
> df$a %in% c(1, 2, 3)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to