Skip to content

Conversation

@uros-db
Copy link
Contributor

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

What changes were proposed in this pull request?

Added Geography and Geometry accessors to core row/column interfaces, extended codegen and physical type handling to properly recognize geospatial types, enabled writing/reading of Geography and Geometry values in unsafe writer, and added other necessary plumbing for Geography and Geometry in projection/row utilities in order to thread through the new accessors.

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

Why are the changes needed?

To provide first-class support for GEOGRAPHY and GEOMETRY within Catalyst.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Added new tests to:

  • GenerateUnsafeProjectionSuite.scala
  • UnsafeRowWriterSuite.scala

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

No.

@github-actions github-actions bot added the SQL label Oct 24, 2025
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-54021][Geo][SQL] Implement Geography and Geometry accessors across Catalyst [SPARK-54021][SQL] Implement Geography and Geometry accessors across Catalyst Oct 24, 2025
@uros-db
Copy link
Contributor Author

uros-db commented Oct 24, 2025

@mkaravel @szehon-ho @cloud-fan Please review.

@uros-db uros-db changed the title [SPARK-54021][SQL] Implement Geography and Geometry accessors across Catalyst [SPARK-54021][Geo][SQL] Implement Geography and Geometry accessors across Catalyst Oct 24, 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 This PR is ready for review.

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 5f83b89 Oct 28, 2025
Yicong-Huang pushed a commit to Yicong-Huang/spark that referenced this pull request Oct 30, 2025
…ross Catalyst

### What changes were proposed in this pull request?
Added Geography and Geometry accessors to core row/column interfaces, extended codegen and physical type handling to properly recognize geospatial types, enabled writing/reading of Geography and Geometry values in unsafe writer, and added other necessary plumbing for Geography and Geometry in projection/row utilities in order to thread through the new accessors.

Note that the GEOMETRY and GEOGRAPHY physical types were recently included to Spark SQL as part of: apache#52629.

### Why are the changes needed?
To provide first-class support for GEOGRAPHY and GEOMETRY within Catalyst.

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

### How was this patch tested?
Added new tests to:
  - `GenerateUnsafeProjectionSuite.scala`
  - `UnsafeRowWriterSuite.scala`

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

Closes apache#52723 from uros-db/geo-interfaces.

Authored-by: Uros Bojanic <uros.bojanic@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
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