From 2063e6f0576e99b44f2b30412a7e56adc24d69ef Mon Sep 17 00:00:00 2001 From: GideonPotok Date: Wed, 5 Jun 2024 10:35:34 -0400 Subject: [PATCH] tests pass --- .../org/apache/spark/util/collection/OpenHashSet.scala | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/core/src/main/scala/org/apache/spark/util/collection/OpenHashSet.scala b/core/src/main/scala/org/apache/spark/util/collection/OpenHashSet.scala index d5d272157d240..0ba7b307f5637 100644 --- a/core/src/main/scala/org/apache/spark/util/collection/OpenHashSet.scala +++ b/core/src/main/scala/org/apache/spark/util/collection/OpenHashSet.scala @@ -136,20 +136,13 @@ class OpenHashSet[@specialized(Long, Int, Double, Float) T: ClassTag]( */ @annotation.nowarn("cat=other-non-cooperative-equals") private def keyExistsAtPos(k: T, pos: Int) = { - val isItEqual = classTag[T] match { + classTag[T] match { case ClassTag.Long => _data(pos) equals k case ClassTag.Int => _data(pos) equals k case ClassTag.Double => _data(pos) equals k case ClassTag.Float => _data(pos) equals k case _ => _data(pos).asInstanceOf[UTF8String].semanticEquals(k.asInstanceOf[UTF8String], 1) } - // scalastyle:off println - println("keyExistsAtPos: " + k + " == " + _data(pos) + - " ==" + (k == _data(pos)) + "... equals() " + - (k equals _data(pos)) + "... semanticEquals() " + - isItEqual) - // scalastyle:on println - isItEqual } /**