You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sun Rui (JIRA)" <ji...@apache.org> on 2015/05/05 16:12:59 UTC
[jira] [Commented] (SPARK-6812) filter() on DataFrame does not work
as expected
[ https://issues.apache.org/jira/browse/SPARK-6812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14528488#comment-14528488 ]
Sun Rui commented on SPARK-6812:
--------------------------------
I think this is due to function conflict with existing R filter() function.
If you enforce to call filter() inside SparkR scope, that works.
SparkR:::filter(df, "age > 20")
Originally, in RDD API, we rename RDD filter() to filterRDD() and Filter() . But in DataFrame, filter() name is still used. So we can rename filter() to filterDF() and Filter() as RDD API does.
> filter() on DataFrame does not work as expected
> -----------------------------------------------
>
> Key: SPARK-6812
> URL: https://issues.apache.org/jira/browse/SPARK-6812
> Project: Spark
> Issue Type: Bug
> Components: SparkR
> Reporter: Davies Liu
> Priority: Blocker
>
> {code}
> > filter(df, df$age > 21)
> Error in filter(df, df$age > 21) :
> no method for coercing this S4 class to a vector
> {code}
--
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