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

PySpark SparseVector can return wrong index in error message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.6.0
    • 1.6.0
    • MLlib, PySpark

    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

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

            Dates

              Created:
              Updated:
              Resolved: