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 39f478d102 [GH-2164] fix RasterType legacy import path (#2165)
39f478d102 is described below

commit 39f478d102883879deab66b76a9f0c31c186b6d2
Author: James Willis <[email protected]>
AuthorDate: Fri Jul 25 14:09:28 2025 -0700

    [GH-2164] fix RasterType legacy import path (#2165)
---
 python/sedona/sql/types.py                  | 4 ++--
 python/tests/test_path_compatibility.py     | 3 ++-
 python/tests/test_path_compatibility_all.py | 1 +
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/python/sedona/sql/types.py b/python/sedona/sql/types.py
index 4f78d765c8..4a0223526c 100644
--- a/python/sedona/sql/types.py
+++ b/python/sedona/sql/types.py
@@ -16,7 +16,7 @@
 # under the License.
 
 import warnings
-from sedona.spark.sql.types import GeographyType, GeometryType
+from sedona.spark.sql.types import GeographyType, GeometryType, RasterType
 
 warnings.warn(
     "Importing from 'sedona.sql.types' is deprecated. Please use 
'sedona.spark.sql.types' instead.",
@@ -24,4 +24,4 @@ warnings.warn(
     stacklevel=2,
 )
 
-__all__ = ["GeographyType", "GeometryType"]
+__all__ = ["GeographyType", "GeometryType", "RasterType"]
diff --git a/python/tests/test_path_compatibility.py 
b/python/tests/test_path_compatibility.py
index 6f04b559b2..f5c7048eaa 100644
--- a/python/tests/test_path_compatibility.py
+++ b/python/tests/test_path_compatibility.py
@@ -35,7 +35,7 @@ from sedona.sql.st_aggregates import ST_Union_Aggr
 from sedona.sql.st_constructors import ST_MakePoint
 from sedona.sql.st_functions import ST_X
 from sedona.sql.st_predicates import ST_Intersects
-from sedona.sql.types import GeographyType, GeometryType
+from sedona.sql.types import GeographyType, GeometryType, RasterType
 from sedona.stac.client import Client
 from sedona.stac.collection_client import CollectionClient
 from sedona.stats.clustering import dbscan
@@ -74,6 +74,7 @@ class TestPathCompatibility(TestBase):
         # Test GeographyType and GeometryType imports
         assert GeographyType is not None
         assert GeometryType is not None
+        assert RasterType is not None
 
     def test_spatial_operators_imports(self):
         # Test JoinQuery, KNNQuery, RangeQuery imports
diff --git a/python/tests/test_path_compatibility_all.py 
b/python/tests/test_path_compatibility_all.py
index e14d912db1..19305cbda0 100644
--- a/python/tests/test_path_compatibility_all.py
+++ b/python/tests/test_path_compatibility_all.py
@@ -46,6 +46,7 @@ class TestPathCompatibilityAll(TestBase):
         # Test GeographyType and GeometryType imports
         assert GeographyType is not None
         assert GeometryType is not None
+        assert RasterType is not None
 
     def test_spatial_operators_imports(self):
         # Test JoinQuery, KNNQuery, RangeQuery imports

Reply via email to