Skip to content

feat(c/sedona-s2geography,rust/sedona-functions): Add ST_Segmentize, ST_TessellateGeom, ST_TessellateGeog#867

Open
paleolimbot wants to merge 17 commits into
apache:mainfrom
paleolimbot:segmentize-tessellate
Open

feat(c/sedona-s2geography,rust/sedona-functions): Add ST_Segmentize, ST_TessellateGeom, ST_TessellateGeog#867
paleolimbot wants to merge 17 commits into
apache:mainfrom
paleolimbot:segmentize-tessellate

Conversation

@paleolimbot
Copy link
Copy Markdown
Member

@paleolimbot paleolimbot commented May 22, 2026

This PR wires up the existing support for ST_Segmentize, ST_TessellateGeom, and ST_TessellateGeog provided by SedonaDB, including documentation and tests from the Python side. I also added a ST_ToGeography() and ST_ToGeometry() (Snowflake-inspried) that do a metadata-only (non-validating) cast between the two. Validation functions don't currently exist in s2geography (when they do we can consider whether it's a reasonable default to validate Geography on the way in).

While I was here I added a native ST_Segmentize() for geometry, since it was missing.

Screenshot 2026-05-26 at 3 48 31 PM Screenshot 2026-05-26 at 3 50 05 PM

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 8 comments.

Comment thread rust/sedona-functions/src/st_togeomgeog.rs
Comment thread rust/sedona-functions/src/st_segmentize.rs Outdated
Comment thread rust/sedona-functions/src/st_segmentize.rs
Comment thread rust/sedona-functions/src/st_segmentize.rs
Comment thread rust/sedona-functions/src/st_togeomgeog.rs Outdated
Comment thread rust/sedona-functions/src/st_togeomgeog.rs Outdated
Comment thread rust/sedona-functions/src/register.rs Outdated
Comment thread docs/reference/sql/st_tessellategeom.qmd Outdated
@paleolimbot paleolimbot marked this pull request as ready for review May 26, 2026 20:39
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