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

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

    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

          People

            mengxr Xiangrui Meng
            mengxr Xiangrui Meng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: