Skip to content

Conversation

@uros-db
Copy link
Contributor

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

What changes were proposed in this pull request?

This PR introduces type encoders for Geography and Geometry.

Note that the server-side geospatial classes have already been introduced as part of: #52737; while client-side geospatial classes in external API have subsequently been introduced as part of: #52804.

Why are the changes needed?

These encoders are used to translate between (server) Spark Catalyst types and (client) Java/Scala types.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Added new Scala unit test suites for data frames:

  • GeographyDataFrameSuite
  • GeometryDataFrameSuite

Also, added appropriate test cases to:

  • RowSuite

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

No.

@github-actions github-actions bot added the SQL label Oct 31, 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.

@cloud-fan Please review.

@uros-db uros-db requested a review from cloud-fan November 1, 2025 09:22
@cloud-fan
Copy link
Contributor

thanks, merging to master/4.1!

@cloud-fan cloud-fan closed this in 2f94313 Nov 3, 2025
cloud-fan pushed a commit that referenced this pull request Nov 3, 2025
…metry types

### What changes were proposed in this pull request?
This PR introduces type encoders for `Geography` and `Geometry`.

Note that the server-side geospatial classes have already been introduced as part of: #52737; while client-side geospatial classes in external API have subsequently been introduced as part of: #52804.

### Why are the changes needed?
These encoders are used to translate between (server) Spark Catalyst types and (client) Java/Scala types.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Added new Scala unit test suites for data frames:
- `GeographyDataFrameSuite`
- `GeometryDataFrameSuite`

Also, added appropriate test cases to:
- `RowSuite`

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

Closes #52813 from uros-db/geo-expression-encoders.

Authored-by: Uros Bojanic <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
(cherry picked from commit 2f94313)
Signed-off-by: Wenchen Fan <[email protected]>
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 <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
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 <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit d304a03)
Signed-off-by: Dongjoon Hyun <[email protected]>
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.

Closes apache#52861 from uros-db/geo-pyspark-encoders.

Authored-by: Uros Bojanic <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
huangxiaopingRD pushed a commit to huangxiaopingRD/spark that referenced this pull request Nov 25, 2025
…metry types

### What changes were proposed in this pull request?
This PR introduces type encoders for `Geography` and `Geometry`.

Note that the server-side geospatial classes have already been introduced as part of: apache#52737; while client-side geospatial classes in external API have subsequently been introduced as part of: apache#52804.

### Why are the changes needed?
These encoders are used to translate between (server) Spark Catalyst types and (client) Java/Scala types.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Added new Scala unit test suites for data frames:
- `GeographyDataFrameSuite`
- `GeometryDataFrameSuite`

Also, added appropriate test cases to:
- `RowSuite`

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

Closes apache#52813 from uros-db/geo-expression-encoders.

Authored-by: Uros Bojanic <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
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.

Closes apache#52861 from uros-db/geo-pyspark-encoders.

Authored-by: Uros Bojanic <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants