[FLINK-39904][python] Add PyFlink GEOGRAPHY support - #28833
Draft
davidchaava wants to merge 15 commits into
Draft
Conversation
gkalashyan-akv
force-pushed
the
task/support-pyflink
branch
from
July 28, 2026 13:26
671fc3c to
fbe2d4b
Compare
davidchaava
force-pushed
the
task/support-pyflink
branch
from
July 28, 2026 20:31
9415ad2 to
7fbbb09
Compare
davidchaava
force-pushed
the
task/support-pyflink
branch
from
July 28, 2026 20:36
7fbbb09 to
5ce335d
Compare
davidchaava
force-pushed
the
task/support-pyflink
branch
from
July 29, 2026 07:30
16ec8c0 to
ba8062c
Compare
davidchaava
force-pushed
the
task/support-pyflink
branch
from
July 29, 2026 08:45
ba8062c to
bb94693
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change
This PR adds PyFlink support for the GEOGRAPHY logical type.
It exposes GEOGRAPHY in PyFlink table schemas, Python type conversion, Arrow conversion, Python function execution protocol, and SQL round-trip paths. This allows Python users to define GEOGRAPHY columns, pass GEOGRAPHY values through PyFlink APIs, and round-trip GEOGRAPHY values as WKB bytes where needed.
This PR is stacked on the base GEOGRAPHY type support and SQL ST functions work.
Brief change log
DataTypes.GEOGRAPHY()support.Dependencies
This PR is stacked on top of:
Only the PyFlink-specific changes should be reviewed here. Earlier GEOGRAPHY logical type and SQL function changes are included only because this is a stacked branch.
Related changes
This PR depends on the core GEOGRAPHY logical type support from apache/flink#28740.
It also depends on the SQL ST functions from apache/flink#28788, which provide user-facing SQL constructors and accessors such as
ST_GEOGFROMTEXT,ST_GEOGFROMWKB,ST_ASTEXT, andST_ASWKB.Verifying this change
This change is covered by PyFlink and Java/Python bridge tests.
The added coverage includes:
Does this pull request potentially affect one of the following parts
Documentation
This PR does not add end-user documentation. It extends PyFlink support for the GEOGRAPHY type introduced by the related GEOGRAPHY PRs.