Details
Description
PySpark SparseVector._getitem_ returns an error message if given a bad index here:
https://github.com/apache/spark/blob/a16396df76cc27099011bfb96b28cbdd7f964ca8/python/pyspark/mllib/linalg/__init__.py#L770
But the index it complains about could have been modified (if negative), meaning the index in the error message could be wrong. This should be corrected.