{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15144","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15144/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15144/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15144/events","html_url":"https://github.com/apache/spark/pull/15144","id":177674511,"number":15144,"title":"[SPARK-17587][PYTHON][MLLIB] SparseVector __getitem__ should follow __getitem__ contract","user":{"login":"zero323","id":1554276,"avatar_url":"https://avatars.githubusercontent.com/u/1554276?v=3","gravatar_id":"","url":"https://api.github.com/users/zero323","html_url":"https://github.com/zero323","followers_url":"https://api.github.com/users/zero323/followers","following_url":"https://api.github.com/users/zero323/following{/other_user}","gists_url":"https://api.github.com/users/zero323/gists{/gist_id}","starred_url":"https://api.github.com/users/zero323/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zero323/subscriptions","organizations_url":"https://api.github.com/users/zero323/orgs","repos_url":"https://api.github.com/users/zero323/repos","events_url":"https://api.github.com/users/zero323/events{/privacy}","received_events_url":"https://api.github.com/users/zero323/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-18T20:23:45Z","updated_at":"2016-10-04T00:52:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15144","html_url":"https://github.com/apache/spark/pull/15144","diff_url":"https://github.com/apache/spark/pull/15144.diff","patch_url":"https://github.com/apache/spark/pull/15144.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nReplaces` ValueError` with `IndexError` when index passed to `ml` / `mllib` `SparseVector.__getitem__` is out of range. This ensures correct iteration behavior.\r\n\r\nReplaces `ValueError` with `IndexError` for `DenseMatrix` and `SparkMatrix` in `ml` / `mllib`.\r\n\r\n## How was this patch tested?\r\n\r\nPySpark `ml` / `mllib` unit tests. Additional unit tests to prove that the problem has been resolved.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/251268214","html_url":"https://github.com/apache/spark/pull/15144#issuecomment-251268214","issue_url":"https://api.github.com/repos/apache/spark/issues/15144","id":251268214,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T00:52:07Z","updated_at":"2016-10-04T00:52:07Z","body":"Test PASSed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/66292/\nTest PASSed."}}
{"actor":{"display_login":"AmplabJenkins"}}