Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-17124

RelationalGroupedDataset.agg should be order preserving and allow duplicate column names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.1, 2.1.0
    • SQL
    • None

    Description

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

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

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

      Attachments

        Activity

          People

            petermaxlee Peter Lee
            petermaxlee Peter Lee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: