Revision 48a843b56c99b7d26c6346974bb13e1033dffe4f authored by Joseph K. Bradley on 12 June 2017, 21:27:57 UTC, committed by Joseph K. Bradley on 12 June 2017, 21:28:07 UTC
## What changes were proposed in this pull request?

The method calculateNumberOfPartitions() uses Int, not Long (unlike the MLlib version), so it is very easily to have an overflow in calculating the number of partitions for ML persistence.

This modifies the calculations to use Long.

## How was this patch tested?

New unit test.  I verified that the test fails before this patch.

Author: Joseph K. Bradley <joseph@databricks.com>

Closes #18265 from jkbradley/word2vec-save-fix.

(cherry picked from commit ff318c0d2f283c3f46491f229f82d93714da40c7)
Signed-off-by: Joseph K. Bradley <joseph@databricks.com>
1 parent 580ecfd
History
File Mode Size
src
pom.xml -rw-r--r-- 5.9 KB

back to top