Skip to content

Cherry-pick apache/datafusion#27188 - #222

Merged
alexanderbianchi merged 1 commit into
branch-55from
alex.bianchi/cherry-pick/apache-pr-27188-20261124
Nov 24, 2026
Merged

alexanderbianchi merged 1 commit into
branch-55from
alex.bianchi/cherry-pick/apache-pr-27188-20261124

Conversation

@alexanderbianchi

Copy link
Copy Markdown

Which issue does this PR close?

Backport of apache#27188 to branch-55.

Rationale for this change

Casting both sides of a join to match a UNION schema can strip table qualifiers and leave two indistinguishable columns (for example, _tags).

What changes are included in this PR?

Keep the existing alias when casting its expression, and preserve the relation when aliasing a cast column. Includes the release-55 regression for duplicate struct column names.

Are these changes tested?

coerce_plan_preserves_qualified_column_names passed on this branch. Both duplicate-name Substrait round trips also passed on the combined release pin. Workspace formatting passed.

Are there any user-facing changes?

Previously rejected queries with same-named, qualified columns can plan.

(cherry picked from commit e77410b)
(cherry picked from commit 6710509)
(cherry picked from commit 0964510)
(cherry picked from commit a0b7344)
(cherry picked from commit 57eec87)
@codecov-commenter

codecov-commenter commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 67.44186% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.22%. Comparing base (5bc24de) to head (87d50e1).

Files with missing lines Patch % Lines
datafusion/expr/src/expr_rewriter/mod.rs 67.44% 1 Missing and 13 partials ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##           branch-55     #222      +/-   ##
=============================================
- Coverage      81.22%   81.22%   -0.01%     
=============================================
  Files           1112     1112              
  Lines         390872   390912      +40     
  Branches      390872   390912      +40     
=============================================
+ Hits          317478   317508      +30     
- Misses         54441    54442       +1     
- Partials       18953    18962       +9     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alexanderbianchi
alexanderbianchi merged commit 374d36a into branch-55 Nov 24, 2026
69 of 70 checks passed
@alexanderbianchi
alexanderbianchi deleted the alex.bianchi/cherry-pick/apache-pr-27188-20261124 branch November 24, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants