Github user aloknsingh commented on a diff in the pull request:
https://github.com/apache/spark/pull/7146#discussion_r33737512
--- Diff: mllib/src/main/scala/org/apache/spark/mllib/linalg/Matrices.scala
---
@@ -193,7 +193,8 @@ private[spark] class MatrixUDT extends
UserDefinedType[Matrix] {
}
}
- override def hashCode(): Int = 1994
+ // see [SPARK-8647], this achieves the needed constant hash code without
constant no.
+ override def hashCode(): Int = this.getClass.getName.hashCode()
--- End diff --
@mengxr agree I will change as per comment
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]