You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sedona.apache.org by ji...@apache.org on 2022/03/09 00:50:58 UTC

[incubator-sedona] branch master updated: [SEDONA-89] GeometryUDT equals should test equivalence of the other object (#590)

This is an automated email from the ASF dual-hosted git repository.

jiayu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-sedona.git


The following commit(s) were added to refs/heads/master by this push:
     new dcec5fd  [SEDONA-89] GeometryUDT equals should test equivalence of the other object (#590)
dcec5fd is described below

commit dcec5fd323d7d02101e31289b9ab15c1c01d5211
Author: Oliver Kennedy <ok...@buffalo.edu>
AuthorDate: Tue Mar 8 19:50:53 2022 -0500

    [SEDONA-89] GeometryUDT equals should test equivalence of the other object (#590)
---
 .../main/scala/org/apache/spark/sql/sedona_sql/UDT/GeometryUDT.scala    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql/src/main/scala/org/apache/spark/sql/sedona_sql/UDT/GeometryUDT.scala b/sql/src/main/scala/org/apache/spark/sql/sedona_sql/UDT/GeometryUDT.scala
index 7e302a7..c877010 100644
--- a/sql/src/main/scala/org/apache/spark/sql/sedona_sql/UDT/GeometryUDT.scala
+++ b/sql/src/main/scala/org/apache/spark/sql/sedona_sql/UDT/GeometryUDT.scala
@@ -51,7 +51,7 @@ class GeometryUDT extends UserDefinedType[Geometry] {
   }
 
   override def equals(other: Any): Boolean = other match {
-    case _: UserDefinedType[_] => isInstanceOf[GeometryUDT]
+    case _: UserDefinedType[_] => other.isInstanceOf[GeometryUDT]
     case _ => false
   }