Skip to content
Snippets Groups Projects
Commit de01b6de authored by Edison Tung's avatar Edison Tung
Browse files

Fixed bug in RDD

Math.min takes 2 args, not 1. This was not committed earlier for some
reason
parent e1c814be
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ abstract class RDD[T: ClassManifest](@transient sc: SparkContext) extends Serial
var multiplier = 3.0
if (num > count()) {
total = Math.min(count().toInt)
total = Math.min(count().toInt, Integer.MAX_VALUE)
fraction = 1.0
}
else if (num < 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment