Skip to content

Conversation

@JoshRosen
Copy link
Contributor

This commit fixes an issue where the public SQL Row class did not override hashCode, causing it to violate the hashCode() + equals() contract. To fix this, I simply ported the hashCode implementation from the 1.4.x version of Row.

@JoshRosen
Copy link
Contributor Author

There's a disabled Scalastyle rule which would have prevented this problem. I'm going to see about re-enabling that rule and fixing the existing violations.

@SparkQA
Copy link

SparkQA commented Aug 28, 2015

Test build #41739 has finished for PR 8500 at commit 51ffea1.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class KMeans @Since("1.5.0") (

@marmbrus
Copy link
Contributor

Thanks, I'm going to merge this into master and 1.5

@asfgit asfgit closed this in d3f87dc Aug 28, 2015
asfgit pushed a commit that referenced this pull request Aug 28, 2015
This commit fixes an issue where the public SQL `Row` class did not override `hashCode`, causing it to violate the hashCode() + equals() contract. To fix this, I simply ported the `hashCode` implementation from the 1.4.x version of `Row`.

Author: Josh Rosen <[email protected]>

Closes #8500 from JoshRosen/SPARK-10325 and squashes the following commits:

51ffea1 [Josh Rosen] Override hashCode() for public Row.

(cherry picked from commit d3f87dc)
Signed-off-by: Michael Armbrust <[email protected]>

Conflicts:
	sql/catalyst/src/main/scala/org/apache/spark/sql/Row.scala
@JoshRosen JoshRosen deleted the SPARK-10325 branch August 29, 2016 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants