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

2016-06-17 Thread Apache Spark (JIRA)

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

Apache Spark reassigned SPARK-16035:


Assignee: (was: Apache Spark)

> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



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

2016-06-17 Thread Apache Spark (JIRA)

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

Apache Spark reassigned SPARK-16035:


Assignee: Apache Spark

> 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
>Assignee: Apache Spark
>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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org