Github user buryat commented on a diff in the pull request: https://github.com/apache/spark/pull/19266#discussion_r139616411 --- Diff: mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/BlockMatrix.scala --- @@ -304,8 +304,8 @@ class BlockMatrix @Since("1.3.0") ( s"Int.MaxValue. Currently numRows: ${numRows()}") require(numCols() < Int.MaxValue, "The number of columns of this matrix should be less than " + s"Int.MaxValue. Currently numCols: ${numCols()}") - require(numRows() * numCols() < Int.MaxValue, "The length of the values array must be " + - s"less than Int.MaxValue. Currently numRows * numCols: ${numRows() * numCols()}") + require(numRows() * numCols() < Int.MaxValue - 8, "The length of the values array must be " + --- End diff -- `<=`
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org