Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-11050

PySpark SparseVector can return wrong index in error message

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.6.0
    • Component/s: MLlib, PySpark
    • Labels:
    • Target Version/s:

      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.

        Attachments

          Activity

            People

            • Assignee:
              bhargavm Bhargav Mangipudi
              Reporter:
              josephkb Joseph K. Bradley
              Shepherd:
              Joseph K. Bradley
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: