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

foldByKey does not clone the "zero value" for each key, leading to overwriting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7.2, 0.8.0
    • 0.7.3, 0.8.0
    • Spark Core
    • None

    Description

      This is not a problem with the normal fold() because each task is deserialized separately and gets a separate version of the "zero value". We probably need to do that manually same in foldByKey.

      Attachments

        Activity

          People

            matei Matei Alexandru Zaharia
            matei Matei Alexandru Zaharia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: