Repository navigation
Cherry-pick apache/datafusion#27573 - #223
Merged
alexanderbianchi merged 1 commit intoNov 24, 2026
Merged
alexanderbianchi merged 1 commit into
alexanderbianchi merged 1 commit into
Conversation
ahmed-mez
approved these changes
Nov 24, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## branch-55 #223 +/- ##
==========================================
Coverage 81.22% 81.22%
==========================================
Files 1112 1112
Lines 390872 390892 +20
Branches 390872 390892 +20
==========================================
+ Hits 317478 317498 +20
- Misses 54441 54442 +1
+ Partials 18953 18952 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
alexanderbianchi
deleted the
alex.bianchi/cherry-pick/apache-pr-27573-20261124
branch
November 24, 2026 14:27
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?
Backport of apache#27573 to
branch-55.Rationale for this change
A LIMIT over a join can leave a UNION input with names that differ from its output schema, causing a planning failure after a Substrait round trip.
What changes are included in this PR?
For a non-projection input whose field names differ, project its columns onto the UNION output names by position. Leave matching inputs alone.
Are these changes tested?
Adds the LIMIT-over-join case to
limit.slt. That case passed as SQL and through a Substrait round trip on the combined release pin; not rerun on this standalone head. Workspace formatting passed.Are there any user-facing changes?
Affected UNION ALL queries can plan without changing their output names.