Skip to content

Upgrade to DataFusion 53#1402

Merged
timsaucer merged 7 commits intoapache:mainfrom
nuno-faria:datafusion_53
Mar 6, 2026
Merged

Upgrade to DataFusion 53#1402
timsaucer merged 7 commits intoapache:mainfrom
nuno-faria:datafusion_53

Conversation

@nuno-faria
Copy link
Contributor

@nuno-faria nuno-faria commented Mar 1, 2026

Which issue does this PR close?

N/A.

Rationale for this change

Keep in sync with the next major version of DataFusion.

What changes are included in this PR?

This PR is quite large, but most changes are related to the new version of PyO3.

  • Updated datafusion, pyo3, and arrow (migrated the respective code as well).
  • Updated some tests where the behavior changed.
  • Added small DataFusion 53.0.0 section in the upgrade guide (since PyCapsuleMethods::reference is now deprecated).

Are there any user-facing changes?

Yes, the behavior has changed in a few tests (the review comments below contain more info).

@timsaucer
Copy link
Member

Nice work! There's quite a bit to review, but I plan on getting to it soon.

@timsaucer
Copy link
Member

Related: #1407

Copy link
Member

@timsaucer timsaucer left a comment

Choose a reason for hiding this comment

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

Thank you so much for putting this together, and especially with the detailed sources for the diffs!

datetime(2020, 7, 1, tzinfo=DEFAULT_TZ),
],
type=pa.timestamp("ns", tz=DEFAULT_TZ),
type=pa.timestamp("us", tz=DEFAULT_TZ),
Copy link
Member

Choose a reason for hiding this comment

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

Ok, I think this is from apache/datafusion#19640 where it is now passing through the original data type from the input instead of changing it to nanoseconds. I think this is appropriate.

@timsaucer timsaucer merged commit 8ef2cd7 into apache:main Mar 6, 2026
19 checks passed
@nuno-faria nuno-faria deleted the datafusion_53 branch March 6, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants