Skip to content

[SPARK-55449][Geo][SQL] Enable WKB parsing and writing for Geography#54227

Open
uros-db wants to merge 5 commits intoapache:masterfrom
uros-db:geo-wkb-geography
Open

[SPARK-55449][Geo][SQL] Enable WKB parsing and writing for Geography#54227
uros-db wants to merge 5 commits intoapache:masterfrom
uros-db:geo-wkb-geography

Conversation

@uros-db
Copy link
Contributor

@uros-db uros-db commented Feb 9, 2026

What changes were proposed in this pull request?

Implement Geography coordinate validation in WKB parser:

  • Longitude must be between -180 and 180 (inclusive).
  • Latitude must be between -90 and 90 (inclusive).

Why are the changes needed?

Enable Geography parsing from WKB.

Does this PR introduce any user-facing change?

Yes, Geography coordinate values are now limited to the supported ranges for longitude and latitude.

How was this patch tested?

Added new unit tests.

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

Yes.

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.

@szehon-ho Please review.

@uros-db
Copy link
Contributor Author

uros-db commented Feb 9, 2026

@szehon-ho Please review.

Please note that the CI failure (subquery/in-subquery/in-with-cte.sql) doesn't look related to my changes.

Copy link
Member

@szehon-ho szehon-ho left a comment

Choose a reason for hiding this comment

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

looks good to me, minor code suggestions

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.

Thank you for the review @szehon-ho!

@cloud-fan please take a look. All checks green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants