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

Yu Ishikawa commented on SPARK-8348:
------------------------------------

Hi [~shivaram], Thank you for letting me know another PR to add operations into 
SparkR.

Can I ask you a couple of questions about adding a new operator? Those added 
operations doesn't include any method to deal with array or list. I am having 
trouble with how I can deal with array or list in arguments to call a Java 
method. The gist includes the details of code and error messages. Please check 
it.
https://gist.github.com/yu-iskw/ba249f79ef338ff86967

Anyway, {{filter(df, "age in (19)")}} can work without problems. But How do I 
implement {{%in%}} in SparkR?

> Add in operator to DataFrame Column
> -----------------------------------
>
>                 Key: SPARK-8348
>                 URL: https://issues.apache.org/jira/browse/SPARK-8348
>             Project: Spark
>          Issue Type: New Feature
>          Components: SparkR, SQL
>            Reporter: Xiangrui Meng
>
> It is convenient to add "in" operator to column, so we can filter values in a 
> set.
> {code}
> df.filter(col("brand").in("dell", "sony"))
> {code}
> In R, the operator should be `%in%`.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to