Skip to content

Conversation

@timsaucer
Copy link
Member

Which issue does this PR close?

This addresses part of #15804 but does not close it.

Rationale for this change

Now that we are on MSRV 1.88 we can use rust edition 2024, which brings let chains and other nice features. It also improves unsafe checking. In order to introduce these changes in slower way instead of one massive PR that is too difficult to manage we are updating a few crates at a time.

What changes are included in this PR?

Updates 2 crates to 2024.

  • datafusion-functions
  • datafusion-physical-expr
  • datafusion-functions-aggregate
  • datafusion-functions-window
  • datafusion-physical-expr-adapter

Are these changes tested?

Existing unit tests. There are no functional code changes.

Are there any user-facing changes?

None.

@github-actions github-actions bot added physical-expr Changes to the physical-expr crates functions Changes to functions implementation labels Dec 4, 2025
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

I reviewed this using whitespace blink diff: https://github.com/apache/datafusion/pull/19091/files?w=1 and it looks good to me -- thanks for pushing this forward @timsaucer

(I am not sure why the PR is marked as draft)

@timsaucer timsaucer marked this pull request as ready for review December 6, 2025 15:20
@timsaucer timsaucer force-pushed the chore/upgrade-rust-2024-group-4 branch from 3abf05e to 8b4e161 Compare December 7, 2025 07:24
@timsaucer timsaucer added this pull request to the merge queue Dec 8, 2025
Merged via the queue into apache:main with commit 998f534 Dec 8, 2025
34 checks passed
@timsaucer timsaucer deleted the chore/upgrade-rust-2024-group-4 branch December 8, 2025 06:41
@alamb
Copy link
Contributor

alamb commented Dec 8, 2025

I believe there was a logical conflict for this PR that now causes the fmt job to fail.

Here is a proposed fix:

github-merge-queue bot pushed a commit that referenced this pull request Dec 8, 2025
## Which issue does this PR close?

<!--
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
`Closes #123` indicates that this PR will close issue #123.
-->

- Closes #.

## Rationale for this change

`cargo fmt` is failing on main. Example
https://github.com/apache/datafusion/actions/runs/20027361509/job/57427769604

I believe it is a logical conflict between:
- #19091
- #19130


## What changes are included in this PR?

Ran `cargo fmt` and committed the result

## Are these changes tested?

<!--
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)?
-->

## Are there any user-facing changes?

<!--
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.
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation physical-expr Changes to the physical-expr crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants