[ https://issues.apache.org/jira/browse/SPARK-5201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Or closed SPARK-5201. ---------------------------- Resolution: Fixed Fix Version/s: 1.3.0 Assignee: Ye Xianjin Target Version/s: 1.3.0, 1.2.1 (was: 1.0.2, 1.1.1, 1.2.0) > ParallelCollectionRDD.slice(seq, numSlices) has int overflow when dealing > with inclusive range > ---------------------------------------------------------------------------------------------- > > Key: SPARK-5201 > URL: https://issues.apache.org/jira/browse/SPARK-5201 > Project: Spark > Issue Type: Bug > Components: Spark Core > Affects Versions: 1.0.0 > Reporter: Ye Xianjin > Assignee: Ye Xianjin > Labels: rdd > Fix For: 1.3.0, 1.2.1 > > Original Estimate: 2h > Remaining Estimate: 2h > > {code} > sc.makeRDD(1 to (Int.MaxValue)).count // result = 0 > sc.makeRDD(1 to (Int.MaxValue - 1)).count // result = 2147483646 = > Int.MaxValue - 1 > sc.makeRDD(1 until (Int.MaxValue)).count // result = 2147483646 = > Int.MaxValue - 1 > {code} > More details on the discussion https://github.com/apache/spark/pull/2874 -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org