Skip to content

Conversation

@vyasr
Copy link
Contributor

@vyasr vyasr commented Nov 22, 2025

Description

When we added support for frequency handling in #18778, we did not account for preserving this property when pickling an index with a frequency.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@vyasr vyasr self-assigned this Nov 22, 2025
@vyasr vyasr requested a review from a team as a code owner November 22, 2025 00:55
@vyasr vyasr added the bug Something isn't working label Nov 22, 2025
@vyasr vyasr requested a review from wence- November 22, 2025 00:55
@vyasr vyasr added the non-breaking Non-breaking change label Nov 22, 2025
@github-actions github-actions bot added the Python Affects Python cuDF API. label Nov 22, 2025
@GPUtester GPUtester moved this to In Progress in cuDF Python Nov 22, 2025
@vyasr
Copy link
Contributor Author

vyasr commented Nov 22, 2025

We should get this fix into 25.12. It is a bug that is affecting ucxx's tests that rely on pickling (e.g. in this job), so we have to patch it somewhere and it might as well be at the source.

@rockhowse rockhowse merged commit 82316f3 into rapidsai:release/25.12 Nov 22, 2025
136 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in cuDF Python Nov 22, 2025
@vyasr vyasr deleted the fix/datetimeindex_pickling branch November 22, 2025 03:19
TomAugspurger added a commit to TomAugspurger/pygdf that referenced this pull request Nov 24, 2025
rapidsai#20709 and
rapidsai#18778 recently changed
DatetimeIndex to preserve `freq` in more places.

This exposed an issue in how we serialize the properties of a DatetimeIndex:
a `DateOffset` instance isn't serializable by msgpack. Distributed
msgpack serialize the headers of messages, and so putting the
`DateOffset` freq there caused issues.

Instead of inserting the `DateOffset` itself, we insert the `kwds` that
can be used to reconstruct it when deserializing.

Closes rapidsai/dask-upstream-testing#88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working non-breaking Non-breaking change Python Affects Python cuDF API.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants