zhengruifeng commented on code in PR #52627:
URL: https://github.com/apache/spark/pull/52627#discussion_r2434299773


##########
python/pyspark/sql/types.py:
##########
@@ -518,6 +519,180 @@ class FloatType(FractionalType, 
metaclass=DataTypeSingleton):
     pass
 
 
+class SpatialType(AtomicType):
+    """Super class of all spatial data types: GeographyType and 
GeometryType."""
+
+    # Mixed SRID value and the corresponding CRS for geospatial types 
(Geometry and Geography).
+    # These values represent a geospatial type that can hold different SRID 
values per row.
+    MIXED_SRID = -1
+    MIXED_CRS = "SRID:ANY"
+
+
+class GeographyType(SpatialType):

Review Comment:
   new types should be listed in `data_types.rst`



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to