-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-10973][ML][PYTHON] __gettitem__ method throws IndexError exception when we… #9009
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… try to access index after the last non-zero entry.
|
ok to test |
|
test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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! |
…when asked for index after the last non-zero entry See #9009 for details. Author: zero323 <[email protected]> Closes #9064 from zero323/SPARK-10973_1.5.
…when asked for index after the last non-zero entry See #9009 for details. Author: zero323 <[email protected]> Closes #9063 from zero323/SPARK-10973_1.4.
…when asked for index after the last non-zero entry See #9009 for details. Author: zero323 <[email protected]> Closes #9062 from zero323/SPARK-10973_1.3.
|
@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