[jira] [Commented] (SPARK-10414) DenseMatrix gives different hashcode even though equals returns true
[ https://issues.apache.org/jira/browse/SPARK-10414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14731757#comment-14731757 ] Vinod KC commented on SPARK-10414: -- Thanks Got the JIRA id https://issues.apache.org/jira/browse/SPARK-9919 > DenseMatrix gives different hashcode even though equals returns true > > > Key: SPARK-10414 > URL: https://issues.apache.org/jira/browse/SPARK-10414 > Project: Spark > Issue Type: Bug > Components: MLlib >Reporter: Vinod KC >Priority: Minor > > hashcode implementation in DenseMatrix gives different result for same input > val dm = Matrices.dense(2, 2, Array(0.0, 1.0, 2.0, 3.0)) > val dm1 = Matrices.dense(2, 2, Array(0.0, 1.0, 2.0, 3.0)) > assert(dm1 === dm) // passed > assert(dm1.hashCode === dm.hashCode) // Failed > This violates the hashCode/equals contract. -- 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] [Commented] (SPARK-10414) DenseMatrix gives different hashcode even though equals returns true
[ https://issues.apache.org/jira/browse/SPARK-10414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14731745#comment-14731745 ] Vinod KC commented on SPARK-10414: -- [~josephkb] Could you please share me that existing JIRA id to review the PR Thanks > DenseMatrix gives different hashcode even though equals returns true > > > Key: SPARK-10414 > URL: https://issues.apache.org/jira/browse/SPARK-10414 > Project: Spark > Issue Type: Bug > Components: MLlib >Reporter: Vinod KC >Priority: Minor > > hashcode implementation in DenseMatrix gives different result for same input > val dm = Matrices.dense(2, 2, Array(0.0, 1.0, 2.0, 3.0)) > val dm1 = Matrices.dense(2, 2, Array(0.0, 1.0, 2.0, 3.0)) > assert(dm1 === dm) // passed > assert(dm1.hashCode === dm.hashCode) // Failed > This violates the hashCode/equals contract. -- 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] [Commented] (SPARK-10414) DenseMatrix gives different hashcode even though equals returns true
[ https://issues.apache.org/jira/browse/SPARK-10414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14726869#comment-14726869 ] Apache Spark commented on SPARK-10414: -- User 'vinodkc' has created a pull request for this issue: https://github.com/apache/spark/pull/8565 > DenseMatrix gives different hashcode even though equals returns true > > > Key: SPARK-10414 > URL: https://issues.apache.org/jira/browse/SPARK-10414 > Project: Spark > Issue Type: Bug > Components: MLlib >Reporter: Vinod KC >Priority: Minor > > hashcode implementation in DenseMatrix gives different result for same input > val dm = Matrices.dense(2, 2, Array(0.0, 1.0, 2.0, 3.0)) > val dm1 = Matrices.dense(2, 2, Array(0.0, 1.0, 2.0, 3.0)) > assert(dm1 === dm) // passed > assert(dm1.hashCode === dm.hashCode) // Failed > This violates the hashCode/equals contract. -- 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