[ https://issues.apache.org/jira/browse/SPARK-15688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yin Huai resolved SPARK-15688. ------------------------------ Resolution: Won't Fix https://github.com/apache/spark/pull/13483#issuecomment-224758653 > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org