Skip to content

[branch-52] fix: Ensure columns are casted to the correct names with Unions (#20146)#20879

Merged
alamb merged 2 commits intoapache:branch-52from
alamb:alamb/backport_20146
Mar 12, 2026
Merged

[branch-52] fix: Ensure columns are casted to the correct names with Unions (#20146)#20879
alamb merged 2 commits intoapache:branch-52from
alamb:alamb/backport_20146

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Mar 11, 2026

nuno-faria and others added 2 commits March 11, 2026 15:44
…he#20146)

- Closes apache#20123.

When aliasing a cast, use the original name to prevent duplicate column
names errors.

- Updated `coerce_exprs_for_schema` to use the correct name.
- Updated tests.

Yes.

No.
@github-actions github-actions bot added logical-expr Logical plan and expressions optimizer Optimizer rules substrait Changes to the substrait crate labels Mar 11, 2026
Copy link
Contributor

@nuno-faria nuno-faria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @alamb.

@alamb alamb merged commit 822f3fa into apache:branch-52 Mar 12, 2026
32 checks passed
@alamb
Copy link
Contributor Author

alamb commented Mar 12, 2026

Thank you @nuno-faria

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

logical-expr Logical plan and expressions optimizer Optimizer rules substrait Changes to the substrait crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants