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

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

    XMLWordPrintableJSON

    Details

    • Type: Story
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.1, 2.4.0
    • Fix Version/s: 2.3.2, 2.4.0
    • Component/s: SparkR
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: