Skip to content

[GH-3179] Add Geography support for ST_X and ST_Y - #3188

Open
jiayuasu wants to merge 2 commits into
apache:masterfrom
jiayuasu:feature/geography-coordinate-accessors
Open

[GH-3179] Add Geography support for ST_X and ST_Y#3188
jiayuasu wants to merge 2 commits into
apache:masterfrom
jiayuasu:feature/geography-coordinate-accessors

Conversation

@jiayuasu

Copy link
Copy Markdown
Member

Did you read the Contributor Guide?

Is this PR related to a ticket?

What changes were proposed in this PR?

  • Add Geography overloads for ST_X and ST_Y.
  • Dispatch Spark expressions to the Geometry or Geography implementation based on the input type.
  • Return NULL for non-point and empty Geography inputs, matching the existing Geometry behavior.

How was this patch tested?

  • Common Geography function tests: 77 passed.
  • Spark Geography function tests: 50 passed.
  • Existing Spark Geometry function regression suite: 235 passed.

Did this PR include necessary documentation updates?

  • Yes, I am adding a new API using the current SNAPSHOT version number, v1.9.1.
  • Yes, I have updated the Geography function index and added pages for ST_X and ST_Y.

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.

Add Geography support for ST_X and ST_Y

1 participant