[FLINK-40421][python] Add sorting APIs to DataFrame API - #29078
Open
Milesian111 wants to merge 1 commit into
Open
[FLINK-40421][python] Add sorting APIs to DataFrame API#29078Milesian111 wants to merge 1 commit into
Milesian111 wants to merge 1 commit into
Conversation
Collaborator
Milesian111
force-pushed
the
pull/40421
branch
from
September 3, 2026 09:10
81e275b to
3c5cf58
Compare
Add lazy DataFrame.sort backed by Table.order_by with per-key direction and explicit null ordering. Reject ordered expressions and cover validation, planning, batch behavior, and mypy-compatible typing with focused tests. Generated-by: Codex GPT-5
Milesian111
force-pushed
the
pull/40421
branch
from
September 3, 2026 09:35
3c5cf58 to
f71e1d1
Compare
Contributor
Author
|
@flinkbot run azure |
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 pull request adds sorting support to the PyFlink DataFrame API. It introduces a lazy
DataFrame.sort()transformation backed by the existing Table APIorder_by()operation, allowing users to sort by one or more columns or expressions without triggering execution.Brief change log
DataFrame.sort()with support for single-column and multi-column sorting.descendingoptions.nulls_firstoptions..ascor.desc.Verifying this change
This change added focused tests covering:
The focused sorting tests and complete DataFrame batch integration tests pass locally. The full DataFrame test module has one unrelated Windows-only failure involving pre-epoch timestamp conversion in
time.mktime.Does this pull request potentially affect one of the following parts:
Documentation
Was generative AI tooling used to co-author this PR?
Generated-by: Codex GPT-5