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

BUG: Allow legacy dtypes to cast to datetime again #21445

Merged
merged 1 commit into from May 5, 2022

Conversation

charris
Copy link
Member

@charris charris commented May 5, 2022

Backport of #21372.

This constraint was added out of a caution with the thought that nobody
uses it. Turns out ora does use it.
In practice, this only affects cast to and from datetimes (or possibly
strings but that seems even less likely).

Tested via ora (see #21365) the paths are not particularly special,
but the parametric dtype resolution is in principle missing.
This is not particularly problematic, since NumPy barely exposes that
though, and it never worked.

Closes #21365


Test is missing, it could be added a rational to string cast probably, but overall it seems ora is working fine with it (see issue) and I always only added the check because I thought that without a proper dtype resolution, this is probably useless in any case. (proper dtype resolution was not possible previously)

If there is a small chance of another 1.21.x release, this should also be backported to there.

This constraint was added out of a caution with the thought that nobody
uses it.  Turns out ora does use it.
In practice, this only affects cast to and from datetimes (or possibly
strings but that seems even less likely).

Tested via ora (see numpygh-21365) the paths are not particularly special,
but the parametric dtype resolution is in principle missing.
This is not particularly problematic, since NumPy barely exposes that
though, and it never worked.

Closes numpygh-21365
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels May 5, 2022
@charris charris added this to the 1.22.4 release milestone May 5, 2022
@charris charris merged commit a0e69d5 into numpy:maintenance/1.22.x May 5, 2022
@charris charris deleted the backport-21372 branch May 5, 2022 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug 08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants