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

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

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete CommentsDelete
    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 Assign to me
            matei Matei Alexandru Zaharia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment