You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/06/02 23:37:59 UTC
[jira] [Assigned] (SPARK-15688) RelationalGroupedDataset.toDF
should not add group by expressions that are already added in the aggregate
expressions.
[ https://issues.apache.org/jira/browse/SPARK-15688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-15688:
------------------------------------
Assignee: (was: Apache Spark)
> RelationalGroupedDataset.toDF should not add group by expressions that are already added in the aggregate expressions.
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: SPARK-15688
> URL: https://issues.apache.org/jira/browse/SPARK-15688
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Reporter: Yin Huai
>
> For {{df.groupBy("col").agg($"col", count("*"))`}}, it is kind of weird to have col appearing twice in the result. Seems we can avoid of output group by expressions twice if it already a part of {{agg}}. Looks like RelationalGroupedDataset.toDF is the place to change.
--
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