Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
fix bug that numUsers * numProducts will exceed the manxmun value of …
Browse files Browse the repository at this point in the history
…int. (Intel-bigdata#658)

Signed-off-by: minmingzhu <[email protected]>
  • Loading branch information
minmingzhu authored Nov 22, 2021
1 parent 32472f2 commit 0768463
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ object RatingDataGenerator {
numRatings = args(3).toInt
implicitPrefs = args(4).toBoolean

require(numRatings <= numUsers * numProducts,
require(numRatings.toLong <= numUsers.toLong * numProducts.toLong,
s"RatingDataGenerator: numRatings=$numRatings is too large, should be <= numUsers * numProducts"
)

Expand Down

0 comments on commit 0768463

Please sign in to comment.