Skip to content

[SPARK-54166][Geo][PYTHON] Introduce type encoders for geospatial types in PySpark - #52861

Closed
uros-db wants to merge 14 commits into
apache:masterfrom
uros-db:geo-pyspark-encoders
Closed

[SPARK-54166][Geo][PYTHON] Introduce type encoders for geospatial types in PySpark#52861
uros-db wants to merge 14 commits into
apache:masterfrom
uros-db:geo-pyspark-encoders

Conversation

@uros-db

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This PR introduces type encoders for Geography and Geometry in PySpark.

Note that Scala-side encoders for geospatial types were added in: #52813.

Why are the changes needed?

Expanding client support for geospatial types in PySpark API.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

New PySpark unit tests:

  • test_types
  • test_parity_types

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

No.

uros-db

This comment was marked as outdated.

uros-db

This comment was marked as outdated.

@uros-db
uros-db marked this pull request as draft November 4, 2025 07:42
@uros-db
uros-db marked this pull request as ready for review November 5, 2025 19:45
uros-db

This comment was marked as outdated.

@zhengruifeng

Copy link
Copy Markdown
Contributor

@uros-db the test failures seems related

@uros-db
uros-db marked this pull request as draft November 7, 2025 06:00
@uros-db
uros-db marked this pull request as ready for review November 8, 2025 04:58
@uros-db

Copy link
Copy Markdown
ContributorAuthor

@zhengruifeng@HyukjinKwon@cloud-fan All checks good now.

@uros-dburos-db left a comment

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

#52930 is merged, so this PR is ready to move on.

@dongjoon-hyundongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1, LGTM. Thank you, @uros-db and all.

Merged to master/4.1.

dongjoon-hyun pushed a commit that referenced this pull request Nov 8, 2025
…es in PySpark
### What changes were proposed in this pull request?
This PR introduces type encoders for `Geography` and `Geometry` in PySpark.
Note that Scala-side encoders for geospatial types were added in: #52813.
### Why are the changes needed?
Expanding client support for geospatial types in PySpark API.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
New PySpark unit tests:
- `test_types`
- `test_parity_types`
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes#52861 from uros-db/geo-pyspark-encoders.
Authored-by: Uros Bojanic <uros.bojanic@databricks.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit d304a03)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 22, 2025
…es in PySpark
### What changes were proposed in this pull request?
This PR introduces type encoders for `Geography` and `Geometry` in PySpark.
Note that Scala-side encoders for geospatial types were added in: apache#52813.
### Why are the changes needed?
Expanding client support for geospatial types in PySpark API.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
New PySpark unit tests:
- `test_types`
- `test_parity_types`
### Was this patch authored or co-authored using generative AI tooling?
No.
Closesapache#52861 from uros-db/geo-pyspark-encoders.
Authored-by: Uros Bojanic <uros.bojanic@databricks.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
huangxiaopingRD pushed a commit to huangxiaopingRD/spark that referenced this pull request Nov 25, 2025
…es in PySpark
### What changes were proposed in this pull request?
This PR introduces type encoders for `Geography` and `Geometry` in PySpark.
Note that Scala-side encoders for geospatial types were added in: apache#52813.
### Why are the changes needed?
Expanding client support for geospatial types in PySpark API.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
New PySpark unit tests:
- `test_types`
- `test_parity_types`
### Was this patch authored or co-authored using generative AI tooling?
No.
Closesapache#52861 from uros-db/geo-pyspark-encoders.
Authored-by: Uros Bojanic <uros.bojanic@databricks.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for freeto 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.

4 participants

@uros-db@zhengruifeng@HyukjinKwon@dongjoon-hyun