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/sedona.git


The following commit(s) were added to refs/heads/master by this push:
     new c89b0f3350 [CI] Fix issues with the sql function tests (#1983)
c89b0f3350 is described below

commit c89b0f335043713a5cce54e22af7d36776a9636c
Author: Emmanuel Ferdman <[email protected]>
AuthorDate: Mon Jun 9 07:18:56 2025 +0300

    [CI] Fix issues with the sql function tests (#1983)
    
    Signed-off-by: Emmanuel Ferdman <[email protected]>
---
 python/tests/sql/test_function.py | 25 +------------------------
 1 file changed, 1 insertion(+), 24 deletions(-)

diff --git a/python/tests/sql/test_function.py 
b/python/tests/sql/test_function.py
index c18750e67c..5ed636c8e9 100644
--- a/python/tests/sql/test_function.py
+++ b/python/tests/sql/test_function.py
@@ -166,29 +166,6 @@ class TestPredicateJoin(TestBase):
         actual = function_df.take(1)[0][0]
         assert actual == 3395
 
-    def test_st_bestsrid(self):
-        polygon_from_wkt = (
-            self.spark.read.format("csv")
-            .option("delimiter", "\t")
-            .option("header", "false")
-            .load(mixed_wkt_geometry_input_location)
-        )
-
-        polygon_from_wkt.createOrReplaceTempView("polgontable")
-        polygon_from_wkt.show()
-
-        polygon_df = self.spark.sql(
-            "select ST_GeomFromWKT(polygontable._c0) as countyshape from 
polygontable"
-        )
-        polygon_df.createOrReplaceTempView("polygondf")
-        polygon_df.show()
-        function_df = self.spark.sql(
-            "select ST_BestSRID(polygondf.countyshape) from polygondf"
-        )
-        function_df.show()
-        actual = function_df.take(1)[0][0]
-        assert actual == 3395
-
     def test_st_shiftlongitude(self):
         function_df = self.spark.sql(
             "select ST_ShiftLongitude(ST_GeomFromWKT('POLYGON((179 10, -179 
10, -179 20, 179 20, 179 10))'))"
@@ -616,7 +593,7 @@ class TestPredicateJoin(TestBase):
             == "POLYGON ((-3 -3, -3 3, 3 3, 3 -3, -3 -3), (-1 -1, 1 -1, 1 1, 
-1 1, -1 -1))"
         )
 
-    def test_st_difference_right_not_overlaps_left(self):
+    def test_st_difference_left_is_contained_by_right(self):
         test_table = self.spark.sql(
             "select ST_GeomFromWKT('POLYGON ((-1 -1, 1 -1, 1 1, -1 1, -1 
-1))') as a,ST_GeomFromWKT('POLYGON ((-3 -3, 3 -3, 3 3, -3 3, -3 -3))') as b"
         )

Reply via email to