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

replace from_timestamp by from_timestamp_opt #2894

Merged
merged 1 commit into from Oct 21, 2022

Conversation

waitingkuo
Copy link
Contributor

Which issue does this PR close?

Closes #2892

Rationale for this change

from_timestamp in chrono will be deprecated in 0.4.23

What changes are included in this PR?

Are there any user-facing changes?

@waitingkuo
Copy link
Contributor Author

waitingkuo commented Oct 18, 2022

cc @avantgardnerio @liukun4515

@github-actions github-actions bot added the arrow Changes to the arrow crate label Oct 18, 2022
Copy link
Contributor

@avantgardnerio avantgardnerio left a comment

Choose a reason for hiding this comment

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

Nice work staying ahead of chrono changes!

BTW when 0.4.23 is out, we can remove all our custom add_months code.

Copy link
Contributor

@tustvold tustvold left a comment

Choose a reason for hiding this comment

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

This looks good to me, I think it would be good to document the circumstances these methods return None as it wasn't immediately obvious to me

@tustvold tustvold added the api-change Changes to the arrow API label Oct 20, 2022
@tustvold tustvold merged commit 5de555e into apache:master Oct 21, 2022
@alamb alamb changed the title replace from_timestamp by from_timestamp_opt replace from_timestamp by from_timestamp_opt Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-change Changes to the arrow API arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

replace from_timestamp by from_timestamp_opt
3 participants