[ 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org