You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yin Huai (JIRA)" <ji...@apache.org> on 2016/06/01 05:26:12 UTC

[jira] [Created] (SPARK-15688) RelationalGroupedDataset.toDF should not add group by expressions that are already added in the aggregate expressions.

Yin Huai created SPARK-15688:
--------------------------------

             Summary: 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