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

Unpivot / melt function for Dataset API

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • SQL
    • None

    Description

      As pointed out in SPARK-30273 and SPARK-37799, the Dataset API provides the pivot method but not its reverse operation melt. It is only provided as part of the PySpark Pandas API, implemented in Python. However, melt is not available via the PySpark DataFrame API, nor through Spark Scala Dataset API.

      As mentioned in #26912, it should be implemented in Scala and invoked from PySpark.

      Attachments

        Issue Links

          Activity

            People

              enricomi Enrico Minack
              enricomi Enrico Minack
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: