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

SparkR:::parallelize doesn't handle integer overflow properly

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersStop watchingWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Story
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.1, 2.4.0
    • 2.3.2, 2.4.0
    • SparkR
    • None

    Description

      parallelize uses integer multiplication, which cannot handle size over ~47000. This cause issues with lapply

       

      SparkR:::parallelize(sc, 1:47000, 47000)
      
      Error in rep(start, end - start) : invalid 'times' argument
      Error in rep(start, end - start) : invalid 'times' argument
      In addition: Warning message:
      In x * length(coll) : NAs produced by integer overflow

      Attachments

        Activity

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

          People

            mengxr Xiangrui Meng Assign to me
            mengxr Xiangrui Meng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment