petern48 commented on code in PR #2405:
URL: https://github.com/apache/sedona/pull/2405#discussion_r2441578172


##########
python/tests/geopandas/test_match_geopandas_series.py:
##########
@@ -1001,6 +1032,11 @@ def test_covered_by(self):
 
     def test_distance(self):
         for geom, geom2 in self.pairs:
+            if geom[0].is_empty or geom2[0].is_empty:
+                # Sedona's ST_Distance returns 0.0 instead of null
+                # when an empty geometry is involved
+                # https://github.com/apache/sedona/issues/2406
+                continue

Review Comment:
   Filed https://github.com/apache/sedona/issues/2406



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to