https://github.com/apache/spark
Revision f7a91a17e8e20965b3e634e611690a96f72cec6b authored by Jon McLean on 09 May 2017, 08:47:50 UTC, committed by Sean Owen on 09 May 2017, 08:48:09 UTC
## What changes were proposed in this pull request? Added a check for for the number of defined values. Previously the argmax function assumed that at least one value was defined if the vector size was greater than zero. ## How was this patch tested? Tests were added to the existing VectorsSuite to cover this case. Author: Jon McLean <jon.mclean@atsid.com> Closes #17877 from jonmclean/vectorArgmaxIndexBug. (cherry picked from commit be53a78352ae7c70d8a07d0df24574b3e3129b4a) Signed-off-by: Sean Owen <sowen@cloudera.com>
1 parent a1112c6
Tip revision: f7a91a17e8e20965b3e634e611690a96f72cec6b authored by Jon McLean on 09 May 2017, 08:47:50 UTC
[SPARK-20615][ML][TEST] SparseVector.argmax throws IndexOutOfBoundsException
[SPARK-20615][ML][TEST] SparseVector.argmax throws IndexOutOfBoundsException
Tip revision: f7a91a1
File | Mode | Size |
---|---|---|
.github | ||
R | ||
assembly | ||
bin | ||
build | ||
common | ||
conf | ||
core | ||
data | ||
dev | ||
docs | ||
examples | ||
external | ||
graphx | ||
launcher | ||
licenses | ||
mesos | ||
mllib | ||
mllib-local | ||
project | ||
python | ||
repl | ||
sbin | ||
sql | ||
streaming | ||
tools | ||
yarn | ||
.gitattributes | -rw-r--r-- | 40 bytes |
.gitignore | -rw-r--r-- | 1.2 KB |
.travis.yml | -rw-r--r-- | 1.7 KB |
CONTRIBUTING.md | -rw-r--r-- | 995 bytes |
LICENSE | -rw-r--r-- | 17.4 KB |
NOTICE | -rw-r--r-- | 24.1 KB |
README.md | -rw-r--r-- | 3.7 KB |
appveyor.yml | -rw-r--r-- | 1.8 KB |
pom.xml | -rw-r--r-- | 98.5 KB |
scalastyle-config.xml | -rw-r--r-- | 16.7 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...