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

RDD zip erroneous when partitions do not divide RDD count

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.0, 1.0.0
    • 1.1.0
    • Spark Core
    • None

    Description

      Example:

      scala> sc.parallelize(1L to 2L,4).zip(sc.parallelize(11 to 12,4)).collect
      res1: Array[(Long, Int)] = Array((2,11))

      But more generally, it's whenever the number of partitions does not evenly divide the total number of elements in the RDD.

      See https://groups.google.com/forum/#!msg/spark-users/demrmjHFnoc/Ek3ijiXHr2MJ

      Attachments

        Issue Links

          Activity

            People

              kzhang Kan Zhang
              michaelmalak Michael Malak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: