Skip to content

Conversation

@uros-db
Copy link
Contributor

@uros-db uros-db commented Nov 5, 2025

What changes were proposed in this pull request?

This PR allows casting fixed SRID type GEOGRAPHY(<srid>) to mixed SRID type GEOGRAPHY(ANY).

Why are the changes needed?

Enable explicit casting between geography types.

Does this PR introduce any user-facing change?

Yes, casting GEOGRAPHY(<srid>) to GEOGRAPHY(ANY) is now allowed.

How was this patch tested?

Added new unit tests:

  • StUtilsSuite
  • CastSuiteBase

Added new e2e SQL tests:

  • st-functions

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

No.

@github-actions github-actions bot added the SQL label Nov 5, 2025
uros-db

This comment was marked as outdated.

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.

@cloud-fan @mkaravel Please review.

@uros-db uros-db requested a review from cloud-fan November 6, 2025 21:46
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Thank you, @uros-db and @cloud-fan .

Merged to master/4.1.

dongjoon-hyun pushed a commit that referenced this pull request Nov 7, 2025
…graphyType(ANY)

### What changes were proposed in this pull request?
This PR allows casting fixed SRID type `GEOGRAPHY(<srid>)` to mixed SRID type `GEOGRAPHY(ANY)`.

### Why are the changes needed?
Enable explicit casting between geography types.

### Does this PR introduce _any_ user-facing change?
Yes, casting `GEOGRAPHY(<srid>)` to `GEOGRAPHY(ANY)` is now allowed.

### How was this patch tested?
Added new unit tests:
- `StUtilsSuite`
- `CastSuiteBase`

Added new e2e SQL tests:
- `st-functions`

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

Closes #52906 from uros-db/geo-cast-geography_any.

Authored-by: Uros Bojanic <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 941c24b)
Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants