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

Dataset.foreachPartition returns object

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • None
    • SQL
    • None

    Description

      I'm trying to map values from the Dataset[Row], but since 3.0.0 this fails.

      In 3.0.0 I'm dealing with an error: "Error:(28, 38) value map is not a member of Object"

       

      This is the simplest code that works in 2.4.x, but fails in 3.0.0:

      spark.range(100)
        .repartition(10)
        .foreachPartition(part => println(part.toList))
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            frankivo Frank Oosterhuis
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: