Skip to content

[branch-52] Cherry-pick apache/datafusion#20106 - #97

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
DataDog:branch-52from
dd-david-levin:david.levin/cherry-pick/apache-pr-20106-20260325
Mar 26, 2026
Merged

[branch-52] Cherry-pick apache/datafusion#20106#97
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
DataDog:branch-52from
dd-david-levin:david.levin/cherry-pick/apache-pr-20106-20260325

Conversation

@dd-david-levin

Copy link
Copy Markdown

cherry-picks apache#20106

<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax. For example
`Closesapache#123` indicates that this PR will close issue apache#123.
-->
- Closes #.
<!--
Why are you proposing this change? If this is already explained clearly
in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand
your changes and offer better suggestions for fixes.
-->
Reproduces a duplicate name issue introduced in
apache#19019.
Reverting the following code:
https://github.com/apache/datafusion/blob/2e02cc131d1d71cce819000912f0411345ca2d6e/datafusion/expr/src/expr_rewriter/mod.rs#L263-L263
From:
```rust
_ => {
// maintain the original name when casting
let name = dst_schema.field(idx).name();
Ok(expr.cast_to(new_type, src_schema)?.alias(name))
}
```
to
```rust
_ => expr.cast_to(new_type, src_schema),
```
Seems to fix the issue.
TODO: actually fix the issue before merging
<!--
There is no need to duplicate the description in the issue here but it
is sometimes worth providing a summary of the individual changes in this
PR.
-->
For now, just a reproducer test
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code
If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
-->
yes, by a new test
no
<!--
If there are user-facing changes then we may require documentation to be
updated before approving the PR.
-->
<!--
If there are any breaking changes to public APIs, please add the `api
change` label.
-->
(cherry picked from commit 1825f97)
@dd-david-levin

Copy link
Copy Markdown
Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351Bot commented Mar 26, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-03-26 13:49:27 UTC ℹ️ Start processing command /merge


2026-03-26 13:49:34 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in branch-52 is approximately 21m (p90).


2026-03-26 14:10:04 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854dBot merged commit 76c91c1 into DataDog:branch-52Mar 26, 2026
30 checks passed
@gabotechsgabotechs changed the title Cherry-pick apache/datafusion#20106[branch-52] Cherry-pick apache/datafusion#20106Apr 16, 2026
Sign up for freeto 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

@dd-david-levin@LiaCastaneda@gabotechs