[SPARK-10973][ML][PYTHON] __gettitem__ method throws IndexError exception when we…#9009
[SPARK-10973][ML][PYTHON] __gettitem__ method throws IndexError exception when we…#9009zero323 wants to merge 2 commits into
Conversation
… try to access index after the last non-zero entry.
|
ok to test |
|
test this please |
There was a problem hiding this comment.
May as well use inds here for clarity since that's what is used elsewhere
|
LGTM Ping @mengxr FYI. Also, which Spark versions are we patching? |
|
@zero323 Can you please add tags "[ML] [PYTHON]" to the title of this PR? |
|
Test build #1859 has finished for PR 9009 at commit
|
|
@jkbradley Done. |
|
Thanks! I'll merge this with master once tests pass. Would you be able to send PRs against branch-1.3, branch-1.4, branch-1.5 in order to backport this to previous Spark versions? They can use the same JIRA number. |
|
Test build #1862 has finished for PR 9009 at commit
|
|
merging with master |
|
It should be possible to push this check before binary search: 8a695fe2c3344acd19279fcd539177426d436a02 |
|
@zero323 Good point, that's better for sure. Do you mind preparing a patch for 1.6 for that? (I don't think it's necessary to backport it everywhere.) |
|
@jkbradley Sure, I can do it later this week. Should I open a new JIRA for that? |
|
Yes, please. Thanks! |
|
@jkbradley I've created a JIRA and opened a PR. |
gettitem method throws IndexError exception when we try to access index after the last non-zero entry