[ 
https://issues.apache.org/jira/browse/SPARK-9793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14693594#comment-14693594
 ] 

Yanbo Liang commented on SPARK-9793:
------------------------------------

[~josephkb] I think we can override the "Vector.__eq__" of Python like what 
Vector.equals() of Scala does, then it can compare DenseVector with 
SparseVector. If this make sense, I can submit a patch tomorrow. 

> PySpark DenseVector, SparseVector should override __eq__
> --------------------------------------------------------
>
>                 Key: SPARK-9793
>                 URL: https://issues.apache.org/jira/browse/SPARK-9793
>             Project: Spark
>          Issue Type: Bug
>          Components: ML, PySpark
>    Affects Versions: 1.5.0
>            Reporter: Joseph K. Bradley
>            Priority: Critical
>
> See [SPARK-9750].
> PySpark DenseVector and SparseVector do not override the equality operator 
> properly.  They should use semantics, not representation, for comparison.  
> (This is what Scala currently does.)



--
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

Reply via email to