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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment