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

[jira] [Resolved] (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 ]

Xiangrui Meng resolved SPARK-16035.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.6.2
                   2.0.0

Issue resolved by pull request 13750
[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
>             Fix For: 2.0.0, 1.6.2
>
>
> 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