[
https://issues.apache.org/jira/browse/SPARK-14325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyukjin Kwon resolved SPARK-14325.
----------------------------------
Resolution: Incomplete
> some strange name conflicts in `group_by`
> -----------------------------------------
>
> Key: SPARK-14325
> URL: https://issues.apache.org/jira/browse/SPARK-14325
> Project: Spark
> Issue Type: Bug
> Components: SparkR
> Affects Versions: 1.6.0, 1.6.1
> Environment: sparkR 1.6.0
> Reporter: Dmitriy Selivanov
> Priority: Major
> Labels: bulk-closed
>
> group_by strange behaviour when try to aggregate by column with name "x".
> consider following example
> {code}
> df
> # DataFrame[userId:bigint, type:string, j:int, x:int]
> df %>%group_by(df$userId, df$type, df$j) %>% agg(x = "sum")
> #Error in (function (classes, fdef, mtable) :
> # unable to find an inherited method for function ‘agg’ for signature
> ‘"character"’
> {code}
> after renaming x -> x2 works just file.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]