Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API, Core: Geospatial bounds and spatial predicates #12667

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Kontinuation
Copy link
Member

@Kontinuation Kontinuation commented Mar 27, 2025

This PR adds support for parsing and serializing geospatial bounds, partially implementing the iceberg geo spec: #10981. It also resolved remaining review comments in #12346.

2 spatial predicates were added to operate on geospatial bounds:

  • ST_INTERSECTS: Test if 2 geospatial bounds intersects with each other
  • ST_DISJOINT: The negation of ST_INTERSECTS.

A new subclass of BoundPredicate named BoundGeospatialPredicate was added to represent bound geospatial predicates. BoundGeospatialPredicate do not support evaluating on WKB encoded geometry/geography values, handling of geospatial predicates were implemented by expression visitors to support metrics evaluation on geospatial bounds.

I can divide geospatial bound classes and spatial predicates into 2 PRs, but I'd like to know if my approach of adding geospatial predicates is OK before proceeding.

@Kontinuation Kontinuation force-pushed the pr-geo-bounds branch 2 times, most recently from fdeb006 to 9b63183 Compare March 27, 2025 16:05
@Kontinuation Kontinuation marked this pull request as ready for review March 28, 2025 02:44
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.

1 participant