Skip to content

Commit 39f478d

Browse files
authored
[GH-2164] fix RasterType legacy import path (#2165)
1 parent 38bfee7 commit 39f478d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

python/sedona/sql/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
# under the License.
1717

1818
import warnings
19-
from sedona.spark.sql.types import GeographyType, GeometryType
19+
from sedona.spark.sql.types import GeographyType, GeometryType, RasterType
2020

2121
warnings.warn(
2222
"Importing from 'sedona.sql.types' is deprecated. Please use 'sedona.spark.sql.types' instead.",
2323
DeprecationWarning,
2424
stacklevel=2,
2525
)
2626

27-
__all__ = ["GeographyType", "GeometryType"]
27+
__all__ = ["GeographyType", "GeometryType", "RasterType"]

python/tests/test_path_compatibility.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from sedona.sql.st_constructors import ST_MakePoint
3636
from sedona.sql.st_functions import ST_X
3737
from sedona.sql.st_predicates import ST_Intersects
38-
from sedona.sql.types import GeographyType, GeometryType
38+
from sedona.sql.types import GeographyType, GeometryType, RasterType
3939
from sedona.stac.client import Client
4040
from sedona.stac.collection_client import CollectionClient
4141
from sedona.stats.clustering import dbscan
@@ -74,6 +74,7 @@ def test_sql_type_imports(self):
7474
# Test GeographyType and GeometryType imports
7575
assert GeographyType is not None
7676
assert GeometryType is not None
77+
assert RasterType is not None
7778

7879
def test_spatial_operators_imports(self):
7980
# Test JoinQuery, KNNQuery, RangeQuery imports

python/tests/test_path_compatibility_all.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def test_sql_type_imports(self):
4646
# Test GeographyType and GeometryType imports
4747
assert GeographyType is not None
4848
assert GeometryType is not None
49+
assert RasterType is not None
4950

5051
def test_spatial_operators_imports(self):
5152
# Test JoinQuery, KNNQuery, RangeQuery imports

0 commit comments

Comments
 (0)