refactor(proto): migrate sort merge join serde#23712
Open
Phoenix500526 wants to merge 1 commit into
Open
Conversation
SortMergeJoin serialization still depends on centralized plan downcasts, keeping protobuf ownership separate from the execution plan. Move encoding and decoding behind its ExecutionPlan hooks while preserving existing wire fields. Keep the legacy helpers as deprecated compatibility APIs and verify join enums and sort options roundtrip. Closes apache#23508 Signed-off-by: Jiawei Zhao <Phoenix500526@163.com>
|
Thank you for opening this pull request! Reviewer note: cargo-semver-checks reported the current version number is not SemVer-compatible with the changes in this pull request (compared against the base branch). Details |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #23712 +/- ##
==========================================
- Coverage 80.69% 80.65% -0.04%
==========================================
Files 1088 1088
Lines 367741 367928 +187
Branches 367741 367928 +187
==========================================
+ Hits 296761 296768 +7
- Misses 53272 53448 +176
- Partials 17708 17712 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
adriangb
requested changes
Jul 20, 2026
| protobuf::GenerateSeriesName::GsRange => "range", | ||
| } | ||
| } | ||
| #[deprecated( |
Contributor
There was a problem hiding this comment.
Can we have these deprecated methods delegate to the new methods so we avoid code duplication?
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.
Which issue does this PR close?
Rationale for this change
SortMergeJoinExecserialization currently depends on centralizedencoding and decoding logic in
datafusion-proto. This keeps protobufownership separate from the execution plan and contributes to the
central type-dispatch chain tracked by #23494.
Moving serialization into
SortMergeJoinExeckeeps the implementationwith the plan that owns the relevant state and aligns it with the new
per-plan serialization model.
What changes are included in this PR?
ExecutionPlan::try_to_protoforSortMergeJoinExec.SortMergeJoinExec::try_from_proto.JoinType,JoinSide, andNullEqualitythrough exhaustiveby-name matches.
centralized encoding downcast.
APIs.
modes, filters, column origins, and non-default sort options.
Are these changes tested?
Yes
Are there any user-facing changes?
There are no runtime behavior or protobuf wire-format changes.
The old
PhysicalPlanNodeExtconversion helpers remain available butare deprecated in favor of the plan-local serialization hooks.