You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Peter Lee (JIRA)" <ji...@apache.org> on 2016/08/18 06:42:20 UTC

[jira] [Created] (SPARK-17124) RelationalGroupedDataset.agg should be order preserving and allow duplicate column names

Peter Lee created SPARK-17124:
---------------------------------

             Summary: RelationalGroupedDataset.agg should be order preserving and allow duplicate column names
                 Key: SPARK-17124
                 URL: https://issues.apache.org/jira/browse/SPARK-17124
             Project: Spark
          Issue Type: Bug
          Components: SQL
            Reporter: Peter Lee


See discussion on the mailing list: http://apache-spark-developers-list.1001551.n3.nabble.com/Re-Aggregations-with-scala-pairs-td18666.html

{code}
 def agg(aggExpr: (String, String), aggExprs: (String, String)*): DataFrame = {
    agg((aggExpr +: aggExprs).toMap)
  }
{code}

The above implementation is not order preserving, and does not allow duplicate names.




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