You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2018/08/24 18:05:00 UTC
[jira] [Commented] (SPARK-25234) SparkR:::parallelize doesn't
handle integer overflow properly
[ https://issues.apache.org/jira/browse/SPARK-25234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16592004#comment-16592004 ]
Apache Spark commented on SPARK-25234:
--------------------------------------
User 'mengxr' has created a pull request for this issue:
https://github.com/apache/spark/pull/22225
> SparkR:::parallelize doesn't handle integer overflow properly
> -------------------------------------------------------------
>
> Key: SPARK-25234
> URL: https://issues.apache.org/jira/browse/SPARK-25234
> Project: Spark
> Issue Type: Story
> Components: SparkR
> Affects Versions: 2.3.1, 2.4.0
> Reporter: Xiangrui Meng
> Assignee: Xiangrui Meng
> Priority: Major
>
> parallelize uses integer multiplication, which cannot handle size over ~47000. This cause issues with lapply
>
> {code:java}
> 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{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org