{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/4096","labels_url":"https://api.github.com/repos/apache/spark/issues/4096/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/4096/comments","events_url":"https://api.github.com/repos/apache/spark/issues/4096/events","html_url":"https://github.com/apache/spark/pull/4096","id":54698264,"number":4096,"title":"[SPARK-5257] [MLlib] SparseVector indices must be non-negative","user":{"login":"MechCoder","id":1867024,"avatar_url":"https://avatars.githubusercontent.com/u/1867024?v=3","gravatar_id":"","url":"https://api.github.com/users/MechCoder","html_url":"https://github.com/MechCoder","followers_url":"https://api.github.com/users/MechCoder/followers","following_url":"https://api.github.com/users/MechCoder/following{/other_user}","gists_url":"https://api.github.com/users/MechCoder/gists{/gist_id}","starred_url":"https://api.github.com/users/MechCoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MechCoder/subscriptions","organizations_url":"https://api.github.com/users/MechCoder/orgs","repos_url":"https://api.github.com/users/MechCoder/repos","events_url":"https://api.github.com/users/MechCoder/events{/privacy}","received_events_url":"https://api.github.com/users/MechCoder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-01-18T14:34:15Z","updated_at":"2015-01-19T01:29:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/4096","html_url":"https://github.com/apache/spark/pull/4096","diff_url":"https://github.com/apache/spark/pull/4096.diff","patch_url":"https://github.com/apache/spark/pull/4096.patch"},"body":"Scala afaik does not support negative indexing. And fail early if negative indices are used."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/70436617","html_url":"https://github.com/apache/spark/pull/4096#issuecomment-70436617","issue_url":"https://api.github.com/repos/apache/spark/issues/4096","id":70436617,"user":{"login":"mengxr","id":829644,"avatar_url":"https://avatars.githubusercontent.com/u/829644?v=3","gravatar_id":"","url":"https://api.github.com/users/mengxr","html_url":"https://github.com/mengxr","followers_url":"https://api.github.com/users/mengxr/followers","following_url":"https://api.github.com/users/mengxr/following{/other_user}","gists_url":"https://api.github.com/users/mengxr/gists{/gist_id}","starred_url":"https://api.github.com/users/mengxr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mengxr/subscriptions","organizations_url":"https://api.github.com/users/mengxr/orgs","repos_url":"https://api.github.com/users/mengxr/repos","events_url":"https://api.github.com/users/mengxr/events{/privacy}","received_events_url":"https://api.github.com/users/mengxr/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T01:29:20Z","updated_at":"2015-01-19T01:29:20Z","body":"@MechCoder Similar to #3791, this will significantly hurt performance. Having indices being nonnegative and ordered is a contract. If you want to ensure these, please use the factory method `Vectors.sparse(size, entries)` to construct a sparse vector. Do you minding close this PR?"}}