You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Andrea Pasqua (JIRA)" <ji...@apache.org> on 2016/06/18 01:12:05 UTC

[jira] [Issue Comment Deleted] (SPARK-16035) The SparseVector parser fails checking for valid end parenthesis

     [ https://issues.apache.org/jira/browse/SPARK-16035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrea Pasqua updated SPARK-16035:
----------------------------------
    Comment: was deleted

(was: https://github.com/apache/spark/pull/13750)

> The SparseVector parser fails checking for valid end parenthesis
> ----------------------------------------------------------------
>
>                 Key: SPARK-16035
>                 URL: https://issues.apache.org/jira/browse/SPARK-16035
>             Project: Spark
>          Issue Type: Bug
>          Components: MLlib, PySpark
>    Affects Versions: 1.6.1, 2.0.0
>            Reporter: Andrea Pasqua
>            Priority: Minor
>
> Running
>                       SparseVector.parse(' (4, [0,1 ],[ 4.0,5.0] ')
> will not raise an exception as expected, although it parses it as if there was an end parenthesis.
> This can be fixed by replacing
>                       if start == -1:
>                                raise ValueError("Tuple should end with ')'")
> with
>                      if end == -1:
>                                raise ValueError("Tuple should end with ')'")
> Please see posted PR



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org