Skip to content

[GH-1922] ST_X/Y/Z ON null geometries - #1923

Merged
jiayuasu merged 1 commit into
apache:masterfrom
jgoday:master
Apr 23, 2025
Merged

jiayuasu merged 1 commit into
apache:masterfrom
jgoday:master

Conversation

@jgoday

@jgoday jgoday commented Apr 21, 2025 •

Copy link
Copy Markdown
Contributor

Did you read the Contributor Guide?

Is this PR related to a ticket?

What changes were proposed in this PR?

  • Check for nullity of geometry in the x/y/z/m functions (common/srcmain/java/org/apache/sedona/common/Functions.java), so that their invocation on empty geometries returns null.

How was this patch tested?

  • Created emptyPoint() test on common/src/test/java/org/apache/sedona/common/FunctionsTest.java

Did this PR include necessary documentation updates?

  • No, this PR does not affect any public API so no need to change the documentation.

@jiayuasu jiayuasu added the bug label Apr 23, 2025
@jiayuasu jiayuasu added this to the sedona-1.8.0 milestone Apr 23, 2025
@jiayuasu jiayuasu linked an issue Apr 23, 2025 that may be closed by this pull request
@jiayuasu
jiayuasu merged commit ce3c8dd into apache:master Apr 23, 2025

@paleolimbot paleolimbot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A belated thanks for this!

jiayuasu pushed a commit that referenced this pull request May 30, 2025
Kontinuation pushed a commit to Kontinuation/sedona that referenced this pull request Jan 21, 2026
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.

ST_X/Y on POINT EMPTY throws exception

3 participants