Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate NaiveDateTime #5684

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Michael-J-Ward
Copy link

Which issue does this PR close?

Closes #5480.

What changes are included in this PR?

Migration of arrow_array::temporal_conversion::as_datetime (and delegated functions) to DateTime<Utc>

Are there any user-facing changes?

Yes, all the temporal conversions use DateTime<Utc>.

NOTES

Other call-sites for as_datetime currently convert immediately back to the naive version. I thought this was a good jumping off point to make sure this is in the right direction.

I'm also uncertain on what the final goal state should look like, especially regarding these three signatures.

  • [arrow_cast::cast::adjust_timestamp_to_timezone]
  • [arrow_array::array::PrimitivieArray<t>::value_as_datetime]
  • [arrow_array::types::ArrowTimestampTime::make_value]

If I'm on the right track, I'd much appreciate any guidance on what the next push should look like.

Any test call-site is updated for DateTime<Utc>.

However, normal code  call-sites immediately convert back to naive datetime.

I'm currently uncertain about the post-migration apis of the following:

- [`arrow_cast::cast::adjust_timestamp_to_timezone`]
- [`arrow_array::array::`PrimitivieArray<t>::value_as_datetime`]
- [`arrow_array::types::ArrowTimestampTime::make_value`]
@github-actions github-actions bot added the arrow Changes to the arrow crate label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate use of NaiveDateTime in APIs
1 participant