Skip to content

Conversation

uros-db
Copy link
Contributor

@uros-db uros-db commented Oct 15, 2025

What changes were proposed in this pull request?

Introduce two new geospatial data types to PySpark API:

  • GeographyType
  • GeometryType

This PR also adds appropriate JSON serialization logic for the new types in PySpark.

Note that the GEOMETRY and GEOGRAPHY logical types were recently included to Spark SQL as part of: #52491.

Why are the changes needed?

Expanding on GEOMETRY and GEOGRAPHY type support across all of the supported APIs.

Does this PR introduce any user-facing change?

Yes, two new data types are now available to users of the PySpark API.

How was this patch tested?

Added new tests to:

  • test_geographytype.py
  • test_geometrytype.py

Also, added appropriate test cases to:

  • test_types.py

Was this patch authored or co-authored using generative AI tooling?

No.

@uros-db uros-db changed the title Initial commit [SPARK-53921][Geo][PYTHON] Introduce GeometryType and GeographyType to PySpark API Oct 15, 2025
@uros-db uros-db changed the title [SPARK-53921][Geo][PYTHON] Introduce GeometryType and GeographyType to PySpark API [WIP][SPARK-53921][Geo][PYTHON] Introduce GeometryType and GeographyType to PySpark API Oct 16, 2025
@uros-db uros-db changed the title [WIP][SPARK-53921][Geo][PYTHON] Introduce GeometryType and GeographyType to PySpark API [SPARK-53921][Geo][PYTHON] Introduce GeometryType and GeographyType to PySpark API Oct 20, 2025
Copy link
Contributor Author

@uros-db uros-db left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhengruifeng Thank you for your comments, I addressed them all. Could you please re-review now?

@uros-db uros-db requested a review from zhengruifeng October 20, 2025 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants