Skip to content

Commit d80d71a

Browse files
committed
Fixed compile error of Distribution.scala
1 parent 64b2c46 commit d80d71a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/util/Distribution.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private[spark] class Distribution(val data: Array[Double], val startIdx: Int, va
4444
*/
4545
def getQuantiles(probabilities: Traversable[Double] = defaultProbabilities)
4646
: IndexedSeq[Double] = {
47-
probabilities.toIndexedSeq.map(data(closestIndex(_)))
47+
probabilities.toIndexedSeq.map(q => data(closestIndex(q)))
4848
}
4949

5050
private def closestIndex(p: Double) = {

0 commit comments

Comments
 (0)